30 lines
438 B
Nix
30 lines
438 B
Nix
|
{
|
||
|
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 = {
|
||
|
|
||
|
# gpg
|
||
|
gnupg.agent = mkIf cfg.gnupg.enable {
|
||
|
enable = true;
|
||
|
pinentryPackage = pkgs.pinentry-qt;
|
||
|
};
|
||
|
|
||
|
};
|
||
|
}
|