nix/shell.nix
iFargle e5215e8a92
Some checks failed
ssh-test / ssh-test (push) Failing after 16s
test
2023-12-11 15:14:15 +09:00

30 lines
No EOL
826 B
Nix

# shell.nix
# A nixpkgs instance that is grabbed from the pinned nixpkgs commit in the lock file
# Useful to avoid using channels when using legacy nix commands
{
pkgs ? (import ./lib/nixpkgs.nix ) { },
sops-nix ? (import ./lib/sops-nix.nix ) { },
deploy-rs ? (import ./lib/deploy-rs.nix) { }
}: {
default = pkgs.mkShell {
NIX_CONFIG = "experimental-features = nix-command flakes";
# imports all files ending in .asc/.gpg
sopsPGPKeyDirs = [
"keys/hosts"
"keys/users"
];
nativeBuildInputs = [
deploy-rs.pkgs.deploy
pkgs.nix
pkgs.home-manager
pkgs.git
pkgs.vim
pkgs.alejandra
pkgs.nixfmt
pkgs.ssh-to-pgp
(pkgs.callPackage sops-nix {}).sops-import-keys-hook
deploy-rs.packages.${pkgs.system}.deploy-rs
];
};
}