Add shell.nix

This commit is contained in:
Henrik Lissner 2020-12-20 20:09:09 -05:00
parent 9572aa99a6
commit f8e2746e7e
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 21 additions and 0 deletions

View file

@ -64,5 +64,8 @@
nixosConfigurations = nixosConfigurations =
mapHosts ./hosts { inherit system; }; mapHosts ./hosts { inherit system; };
devShell."${system}" =
import ./shell.nix { inherit pkgs; };
}; };
} }

18
shell.nix Normal file
View 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"
'';
}