gpg
This commit is contained in:
parent
ae0689bd24
commit
f32d23295c
5 changed files with 40 additions and 3 deletions
19
modules/software/tools/gpg.nix
Normal file
19
modules/software/tools/gpg.nix
Normal file
|
@ -0,0 +1,19 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
let
|
||||
cfg = config.modules.software.tools.gpg;
|
||||
in {
|
||||
options.modules.software.tools.gpg = {
|
||||
enable = mkEnableOption "Enable gnupg, an open pgp software";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
hm.programs.gpg.enable = true;
|
||||
hm.services.gpg-agent = {
|
||||
enable = true;
|
||||
|
||||
pinentryPackage = pkgs.pinentry-gnome3;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue