nix: centralized enable flags

This commit is contained in:
Primrose 2024-10-18 20:14:24 +02:00
parent 202623cecb
commit 04e38c40c3
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
12 changed files with 38 additions and 29 deletions

View file

@ -1,12 +1,9 @@
{ pkgs, lib, ... }:
{ pkgs, ... }:
{
programs.gpg.enable = true;
services.gpg-agent = {
enable = lib.mkIf pkgs.stdenv.isLinux true;
enableFishIntegration = true;
defaultCacheTtl = 1209600;
pinentryPackage = pkgs.pinentry-tty;
services = {
gpg-agent.enableFishIntegration = true;
gpg-agent.defaultCacheTtl = 1209600;
gpg-agent.pinentryPackage = pkgs.pinentry-tty;
};
}