diff --git a/lib/sops-nix.nix b/lib/sops-nix.nix index 05714fb3..04f718d0 100644 --- a/lib/sops-nix.nix +++ b/lib/sops-nix.nix @@ -1,6 +1,6 @@ # Useful to avoid using channels when using legacy nix commands let sops-nix-lock = (builtins.fromJSON (builtins.readFile ../flake.lock)).nodes.sops-nix.locked; 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; }) \ No newline at end of file diff --git a/shell.nix b/shell.nix index 4db1ac9b..020932c9 100644 --- a/shell.nix +++ b/shell.nix @@ -12,11 +12,12 @@ "${toString ./.}/keys/hosts" "${toString ./.}/keys/users" ]; + nativeBuildInputs = [ pkgs.nix pkgs.home-manager pkgs.git - (pkgs.callPackage sops-nix {}).sops-import-keys-hook + (sops-nix {}).sops-import-keys-hook ]; }; } \ No newline at end of file