diff --git a/modules/services/gpg-agent.nix b/modules/services/gpg-agent.nix index 488675f6..ca70406f 100644 --- a/modules/services/gpg-agent.nix +++ b/modules/services/gpg-agent.nix @@ -216,7 +216,7 @@ in { { home.file."${homedir}/gpg-agent.conf".text = concatStringsSep "\n" (optional (cfg.enableSshSupport) "enable-ssh-support" - ++ optional (!cfg.grabKeyboardAndMouse) "no-grab" + ++ optional cfg.grabKeyboardAndMouse "grab" ++ optional (!cfg.enableScDaemon) "disable-scdaemon" ++ optional (cfg.defaultCacheTtl != null) "default-cache-ttl ${toString cfg.defaultCacheTtl}"