home: gpg: make it enable-able
This commit is contained in:
parent
2732d0558a
commit
58c9b60722
11
home/gpg.nix
11
home/gpg.nix
|
@ -1,5 +1,13 @@
|
|||
{ ... }:
|
||||
{ config, lib, ... }:
|
||||
let
|
||||
cfg = config.my.home.gpg;
|
||||
in
|
||||
{
|
||||
options.my.home.gpg = with lib.my; {
|
||||
enable = mkDisableOption "gpg configuration";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
programs.gpg = {
|
||||
enable = true;
|
||||
};
|
||||
|
@ -12,4 +20,5 @@
|
|||
allow-loopback-pinentry
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue