Files
nix-config/modules/nixos/desktop/security.nix
2024-11-29 23:48:42 +08:00

20 lines
432 B
Nix

{
config,
pkgs,
...
}: {
# security with polkit
security.polkit.enable = true;
# security with gnome-kering
services.gnome.gnome-keyring.enable = true;
security.pam.services.greetd.enableGnomeKeyring = true;
# gpg agent with pinentry
programs.gnupg.agent = {
enable = true;
pinentryPackage = pkgs.pinentry-qt;
enableSSHSupport = false;
settings.default-cache-ttl = 4 * 60 * 60; # 4 hours
};
}