Move GnuPG install to system config
This commit is contained in:
parent
afd799ac07
commit
1b305fa81c
|
@ -89,6 +89,18 @@ in
|
||||||
|
|
||||||
services.openssh.enable = true;
|
services.openssh.enable = true;
|
||||||
|
|
||||||
|
programs.gnupg.package = pkgs.gnupg.overrideAttrs (orig: {
|
||||||
|
version = "2.4.0";
|
||||||
|
src = pkgs.fetchurl {
|
||||||
|
url = "mirror://gnupg/gnupg/gnupg-2.4.0.tar.bz2";
|
||||||
|
hash = "sha256-HXkVjdAdmSQx3S4/rLif2slxJ/iXhOosthDGAPsMFIM=";
|
||||||
|
};
|
||||||
|
});
|
||||||
|
programs.gnupg.agent = {
|
||||||
|
enable = true;
|
||||||
|
enableSSHSupport = true;
|
||||||
|
pinentryFlavor = "curses";
|
||||||
|
};
|
||||||
|
|
||||||
# This value determines the NixOS release from which the default
|
# This value determines the NixOS release from which the default
|
||||||
# settings for stateful data, like file locations and database versions
|
# settings for stateful data, like file locations and database versions
|
||||||
|
|
|
@ -36,22 +36,4 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.gpg.enable = true;
|
|
||||||
programs.gpg.package = pkgs.gnupg.overrideAttrs (orig: {
|
|
||||||
version = "2.4.0";
|
|
||||||
src = pkgs.fetchurl {
|
|
||||||
url = "mirror://gnupg/gnupg/gnupg-2.4.0.tar.bz2";
|
|
||||||
hash = "sha256-HXkVjdAdmSQx3S4/rLif2slxJ/iXhOosthDGAPsMFIM=";
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
services.gpg-agent = {
|
|
||||||
enable = true;
|
|
||||||
enableSshSupport = true;
|
|
||||||
pinentryFlavor = "curses";
|
|
||||||
extraConfig = ''
|
|
||||||
allow-loopback-pinentry
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue