This commit is contained in:
iFargle 2023-09-19 21:00:19 +09:00
parent 4e35147d45
commit c26b7ef97c
2 changed files with 3 additions and 2 deletions

View file

@ -1,6 +1,6 @@
# Useful to avoid using channels when using legacy nix commands # Useful to avoid using channels when using legacy nix commands
let sops-nix-lock = (builtins.fromJSON (builtins.readFile ../flake.lock)).nodes.sops-nix.locked; let sops-nix-lock = (builtins.fromJSON (builtins.readFile ../flake.lock)).nodes.sops-nix.locked;
in import (fetchTarball { in import (fetchTarball {
url = "https://github.com/Mic92/sops-nix/archive/master.tar.gz"; url = "https://github.com/Mic92/sops-nix/archive/${sops-nix-lock.rev}.tar.gz";
sha256 = sops-nix-lock.narHash; sha256 = sops-nix-lock.narHash;
}) })

View file

@ -12,11 +12,12 @@
"${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 (sops-nix {}).sops-import-keys-hook
]; ];
}; };
} }