Add shell.nix
This commit is contained in:
parent
9572aa99a6
commit
f8e2746e7e
|
@ -64,5 +64,8 @@
|
|||
|
||||
nixosConfigurations =
|
||||
mapHosts ./hosts { inherit system; };
|
||||
|
||||
devShell."${system}" =
|
||||
import ./shell.nix { inherit pkgs; };
|
||||
};
|
||||
}
|
||||
|
|
18
shell.nix
Normal file
18
shell.nix
Normal file
|
@ -0,0 +1,18 @@
|
|||
{ pkgs ? import <nixpkgs> {} }:
|
||||
|
||||
with pkgs;
|
||||
let nixBin =
|
||||
writeShellScriptBin "nix" ''
|
||||
${nixFlakes}/bin/nix --option experimental-features "nix-command flakes" "$@"
|
||||
'';
|
||||
in mkShell {
|
||||
buildInputs = [
|
||||
git
|
||||
gnupg
|
||||
nix-zsh-completions
|
||||
];
|
||||
shellHook = ''
|
||||
export DOTFILES="$(pwd)"
|
||||
export PATH="$DOTFILES/bin:${nixBin}/bin:$PATH"
|
||||
'';
|
||||
}
|
Loading…
Reference in a new issue