test
This commit is contained in:
parent
a4a533dbbd
commit
3081654c19
1 changed files with 18 additions and 17 deletions
35
shell.nix
35
shell.nix
|
@ -6,21 +6,22 @@ let
|
||||||
};
|
};
|
||||||
lock = (builtins.fromJSON (builtins.readFile ./flake.lock)).nodes.nixpkgs.locked;
|
lock = (builtins.fromJSON (builtins.readFile ./flake.lock)).nodes.nixpkgs.locked;
|
||||||
in
|
in
|
||||||
mkShell {
|
# A nixpkgs instance that is grabbed from the pinned nixpkgs commit in the lock file
|
||||||
import (fetchTarball {
|
# Useful to avoid using channels when using legacy nix commands
|
||||||
url = "https://github.com/nixos/nixpkgs/archive/${lock.rev}.tar.gz";
|
{ pkgs ? import (fetchTarball {url = "https://github.com/nixos/nixpkgs/archive/${lock.rev}.tar.gz"; sha256 = lock.narHash;});
|
||||||
sha256 = lock.narHash;
|
}: {
|
||||||
})
|
mkShell {
|
||||||
NIX_CONFIG = "experimental-features = nix-command flakes";
|
NIX_CONFIG = "experimental-features = nix-command flakes";
|
||||||
# imports all files ending in .asc/.gpg
|
# imports all files ending in .asc/.gpg
|
||||||
sopsPGPKeyDirs = [
|
sopsPGPKeyDirs = [
|
||||||
"${toString ./.}/keys/hosts"
|
"${toString ./.}/keys/hosts"
|
||||||
"${toString ./.}/keys/users"
|
"${toString ./.}/keys/users"
|
||||||
];
|
];
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
pkgs.nix
|
pkgs.nix
|
||||||
pkgs.home-manager
|
pkgs.home-manager
|
||||||
pkgs.git
|
pkgs.git
|
||||||
(pkgs.callPackage sops-nix {}).sops-import-keys-hook
|
(pkgs.callPackage sops-nix {}).sops-import-keys-hook
|
||||||
];
|
];
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue