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:
parent
d4c6f466cc
commit
c4f7025e5d
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
];
|
||||
}
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue