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 libfixposix
mono mono
nomacs nomacs
oraclejdk
python37Packages.youtube-dl python37Packages.youtube-dl
sqlite sqlite
system-config-printer system-config-printer
@ -110,6 +111,12 @@ in mkIf ((profile == "desktop") || (profile == "laptop")) {
gnome-user-share.enable = pkgs.lib.mkForce false; 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; services.dbus.socketActivated = true;
sound.enable = true; sound.enable = true;

View File

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