Files
cnix/modules/home/userd/gpg/default.nix
2024-10-17 20:06:17 +02:00

19 lines
304 B
Nix

{
config,
lib,
...
}: let
inherit (lib) mkIf mkEnableOption;
cfg = config.home.userd.gpg;
in {
options = {
home.userd.gpg.enable = mkEnableOption "Enables gpg";
};
config = mkIf cfg.enable {
services.gpg-agent = {
enable = true;
enableSshSupport = true;
};
};
}