diff --git a/flake.nix b/flake.nix index d88fbf5e..3c205c16 100644 --- a/flake.nix +++ b/flake.nix @@ -64,5 +64,8 @@ nixosConfigurations = mapHosts ./hosts { inherit system; }; + + devShell."${system}" = + import ./shell.nix { inherit pkgs; }; }; } diff --git a/shell.nix b/shell.nix new file mode 100644 index 00000000..e8bcab0e --- /dev/null +++ b/shell.nix @@ -0,0 +1,18 @@ +{ pkgs ? import {} }: + +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" + ''; +}