Use the right pinentry depending whether gui is enabled

This commit is contained in:
Niten 2020-12-07 16:30:06 -06:00
parent 64ad31ab4f
commit 3713020aca
2 changed files with 8 additions and 0 deletions

View File

@ -9,6 +9,7 @@ let
libfixposix
mono
nomacs
oraclejdk
python37Packages.youtube-dl
sqlite
system-config-printer
@ -110,6 +111,12 @@ in mkIf ((profile == "desktop") || (profile == "laptop")) {
gnome-user-share.enable = pkgs.lib.mkForce false;
};
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
pinentryFlavor = if cfg.enable-gui then "gnome3" else "curses";
};
services.dbus.socketActivated = true;
sound.enable = true;

View File

@ -54,6 +54,7 @@ in {
emacs-nox
ldns
ldns.examples
jdk12_headless
racket-minimal
reboot-if-necessary
test-config