From 23616c2e13f63f0262d64538032b98ce83cc0ec2 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Wed, 15 Jul 2026 20:32:36 +0530 Subject: feat: renamed the options to reflect their changed directory stucture Renamed the options for the configurations based on the sub-module that they belong to --- modules/security/gpg/default.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'modules/security/gpg/default.nix') diff --git a/modules/security/gpg/default.nix b/modules/security/gpg/default.nix index 858f79f..9ed3868 100644 --- a/modules/security/gpg/default.nix +++ b/modules/security/gpg/default.nix @@ -7,13 +7,21 @@ # gpg - GNU Privacy Guard { - config = lib.mkIf config.programs.gpg.enable { + options.security.gpg = { + enable = lib.mkEnableOption "Enables gpg."; + }; + + config = lib.mkIf config.security.gpg.enable { + programs.gpg = { + enable = true; + }; + services.gpg-agent = { enable = true; enableZshIntegration = true; defaultCacheTtl = 3600; maxCacheTtl = 86400; - enableSshSupport = config.programs.ssh.enable; + enableSshSupport = config.security.ssh.enable; pinentry.package = pkgs.pinentry-gtk2; }; }; -- cgit v1.2.3