mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-03-18 15:34:13 +01:00
24 lines
521 B
Nix
24 lines
521 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
...
|
|
}: {
|
|
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;
|
|
pinentryPackage = pkgs.pinentry-qt;
|
|
enableSSHSupport = false;
|
|
settings.default-cache-ttl = 4 * 60 * 60; # 4 hours
|
|
};
|
|
}
|