nixos/modules/packages/gpg.nix

10 lines
302 B
Nix
Raw Normal View History

2024-04-25 15:16:32 +08:00
inputs:
{
2024-08-03 17:40:11 +08:00
options.nixos.packages.gpg = let inherit (inputs.lib) mkOption types; in mkOption
{ type = types.nullOr (types.submodule {}); default = {}; };
config = let inherit (inputs.config.nixos.packages) gpg; in inputs.lib.mkIf (gpg != null)
2024-04-25 15:16:32 +08:00
{
2024-05-22 10:44:41 +08:00
programs.gnupg.agent.enable = true;
2024-04-25 15:16:32 +08:00
};
}