ctucx.git: nixfiles

ctucx' nixfiles

commit 7462c1d8ac444c8d4911fb174eed9c9ce8c68d3e
parent 613beae15442c82dbe19d7f1f376636a0a64344d
Author: Leah (ctucx) <leah@ctu.cx>
Date: Sun, 10 Oct 2021 10:47:14 +0200

programs/gnupg: use gnome-pinentry (and fixes to get it working)
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/configurations/programs/sway.nix b/configurations/programs/sway.nix
@@ -41,6 +41,10 @@
       '';
 
       extraConfig = ''
+        # Import the most important environment variables into the D-Bus and systemd
+        # user environments (e.g. required for screen sharing and Pinentry prompts):
+        exec dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
+
         exec firefox
         exec thunderbrid
 
diff --git a/configurations/yubikey.nix b/configurations/yubikey.nix
@@ -3,6 +3,7 @@
 {
   services.pcscd.enable  = true;
   services.udev.packages = with pkgs; [ libu2f-host yubikey-personalization ];
+  services.dbus.packages = with pkgs; [ gcr ];
 
   home-manager.users.leah = {
     home = {

@@ -33,7 +34,7 @@
         enableSshSupport   = true;
         enableExtraSocket  = true;
 
-        pinentryFlavor     = "qt";
+        pinentryFlavor     = "gnome3";
 
         defaultCacheTtl    = 600;
         defaultCacheTtlSsh = 600;