Files
nix-config/modules/nixos/desktop/security.nix
2024-01-23 12:58:59 +08:00

19 lines
442 B
Nix

{config, ...}: {
nix.extraOptions = ''
!include ${config.age.secrets.nix-access-tokens.path}
'';
# 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;
pinentryFlavor = "curses";
enableSSHSupport = false;
};
}