mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 08:39:42 -04:00
added passFF extension
This commit is contained in:
parent
b92d485213
commit
6ecf0632cd
3 changed files with 44 additions and 6 deletions
|
|
@ -3,9 +3,13 @@
|
|||
with lib;
|
||||
let
|
||||
cfg = config.modules.user.security.gpg;
|
||||
gui = config.modules.user.gui.wm;
|
||||
wm = {
|
||||
enable = builtins.any (mod: mod.enable or false) (builtins.attrValues gui);
|
||||
};
|
||||
|
||||
in
|
||||
{ options.modules.user.security.gpg = { enable = mkEnableOption "user.security.gpg"; };
|
||||
{ options.modules.user.security.gpg = { enable = mkEnableOption "Enable GPG module"; };
|
||||
config = mkIf cfg.enable {
|
||||
programs.gpg = {
|
||||
enable = true;
|
||||
|
|
@ -22,7 +26,12 @@ in
|
|||
enableSshSupport = true;
|
||||
enableBashIntegration = true;
|
||||
enableScDaemon = true;
|
||||
pinentryPackage = pkgs.pinentry-tty;
|
||||
|
||||
pinentryPackage =
|
||||
if wm.enable then
|
||||
pkgs.pinentry-gtk2
|
||||
else
|
||||
pkgs.pinentry-curses;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue