1
0
Fork 0
mirror of https://github.com/Mic92/sops-nix.git synced 2024-12-14 11:57:52 +00:00

README: simplify installing sops-nix into shell.nix

This commit is contained in:
Jörg Thalheim 2021-07-03 09:42:47 +02:00
parent d4c6f466cc
commit c4f7025e5d
No known key found for this signature in database
GPG key ID: B3F5D81B0C6967C4

View file

@ -217,6 +217,11 @@ keys to be shared via version control (i.e. git):
```nix
# shell.nix
with import <nixpkgs> {};
let
sops-nix = builtins.fetchTarball {
url = "https://github.com/Mic92/sops-nix/archive/master.tar.gz";
};
in
mkShell {
# imports all files ending in .asc/.gpg
sopsPGPKeyDirs = [
@ -244,7 +249,7 @@ mkShell {
#sopsGPGHome = "${toString ./.}/../gnupg";
nativeBuildInputs = [
(pkgs.callPackage <sops-nix> {}).sops-import-keys-hook
(pkgs.callPackage sops-nix {}).sops-import-keys-hook
];
}
```