voidconf/modules/programs.nix

32 lines
472 B
Nix
Raw Normal View History

2025-02-08 13:32:07 +01:00
{
config,
lib,
pkgs,
...
}:
with lib;
let
cfg = config.voidconf.programs;
in
{
options.voidconf.programs = {
gnupg = {
enable = mkEnableOption "Enables basic GnuPG configuration";
pinentryPackage = mkOption {
default = pkgs.pinentry-qt;
};
};
};
config = {
2025-02-08 13:38:13 +01:00
programs = {
2025-02-08 13:32:07 +01:00
2025-02-08 13:38:13 +01:00
# gpg
gnupg.agent = mkIf cfg.gnupg.enable {
enable = true;
pinentryPackage = pkgs.pinentry-qt;
};
2025-02-08 13:32:07 +01:00
2025-02-08 13:38:13 +01:00
};
2025-02-08 13:32:07 +01:00
};
}