mirror of
https://github.com/sstent/vmimages.git
synced 2025-12-05 21:51:48 +00:00
29 lines
716 B
Nix
29 lines
716 B
Nix
{pkgs ? import <nixpkgs> {}}:
|
|
with pkgs; let
|
|
nixBin = writeShellScriptBin "nix" ''
|
|
${nixFlakes}/bin/nix --option experimental-features "nix-command flakes" "$@"
|
|
'';
|
|
in
|
|
mkShell {
|
|
buildInputs = [
|
|
nix
|
|
home-manager
|
|
git
|
|
ssh-to-age
|
|
sops
|
|
age
|
|
];
|
|
shellHook = ''
|
|
export FLAKE="$(pwd)"
|
|
export PATH="$FLAKE/bin:${nixBin}/bin:$PATH"
|
|
'';
|
|
}
|
|
# { pkgs ? (import ./nixpkgs.nix) { } }: {
|
|
# default = pkgs.mkShell {
|
|
# # Enable experimental features without having to specify the argument
|
|
# NIX_CONFIG = "experimental-features = nix-command flakes";
|
|
# nativeBuildInputs = with pkgs; [ nix home-manager git ssh-to-age sops age ];
|
|
# };
|
|
# }
|
|
|