packages.server: enable gpg

This commit is contained in:
2023-12-31 10:46:57 +08:00
parent 0c49c71899
commit d3f38c3b55
2 changed files with 11 additions and 0 deletions

View File

@@ -4,6 +4,7 @@ inputs:
[
./ssh
./zsh
./gpg.nix
];
config =
let

View File

@@ -0,0 +1,10 @@
inputs:
{
config =
let
inherit (inputs.lib) mkIf;
in mkIf (builtins.elem "server" inputs.config.nixos.packages._packageSets)
{
programs.gnupg.agent = { enable = true; pinentryFlavor = "tty"; };
};
}