GPG module
This commit is contained in:
parent
c5b5639513
commit
4d13ff9fd6
|
@ -17,6 +17,7 @@
|
||||||
./modules/prometheus.nix
|
./modules/prometheus.nix
|
||||||
./modules/kernel.nix
|
./modules/kernel.nix
|
||||||
./modules/fcitx5.nix
|
./modules/fcitx5.nix
|
||||||
|
./modules/programs.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
29
modules/programs.nix
Normal file
29
modules/programs.nix
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
{
|
||||||
|
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;
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue