nix/shell.nix
2024-06-24 14:32:54 +09:00

23 lines
501 B
Nix

{ pkgs, sops-nix, ... }: {
default = pkgs.mkShell {
NIX_CONFIG = "experimental-features = nix-command flakes";
# imports all files ending in .asc/.gpg
sopsPGPKeyDirs = [
"keys/hosts"
"keys/users"
];
nativeBuildInputs = [
pkgs.nix
pkgs.git
pkgs.vim
pkgs.ssh-to-pgp
(pkgs.callPackage sops-nix {}).sops-import-keys-hook
];
shellHook = ''
echo ">>>> Entering Nix Development Environment"
exec fish
'';
};
}