about summary refs log tree commit diff
path: root/nixos/tests/sway.nix
diff options
context:
space:
mode:
authorPatrick Hilhorst <git@hilhorst.be>2023-06-21 16:08:00 +0200
committerPatrick Hilhorst <git@hilhorst.be>2023-06-21 16:08:00 +0200
commit5bd226bfd912a4029d3a29033b1b65f4ecd6caab (patch)
treeaf30e30a1eb29906cb0b52d2e0facc3b9d618dab /nixos/tests/sway.nix
parentae4e5957d85c0c5f5c645fe1d7460b883c8b2a7b (diff)
nixosTests.sway: don't timeout gpg-agent
Diffstat (limited to 'nixos/tests/sway.nix')
-rw-r--r--nixos/tests/sway.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/nixos/tests/sway.nix b/nixos/tests/sway.nix
index bd7dfe9caa975..d95334c10e494 100644
--- a/nixos/tests/sway.nix
+++ b/nixos/tests/sway.nix
@@ -45,6 +45,10 @@ import ./make-test-python.nix ({ pkgs, lib, ... }: {
           regular2 = foreground;
         };
       };
+
+      etc."gpg-agent.conf".text = ''
+        pinentry-timeout 86400
+      '';
     };
 
     fonts.fonts = [ pkgs.inconsolata ];
@@ -154,6 +158,9 @@ import ./make-test-python.nix ({ pkgs, lib, ... }: {
 
     # Test gpg-agent starting pinentry-gnome3 via D-Bus (tests if
     # $WAYLAND_DISPLAY is correctly imported into the D-Bus user env):
+    swaymsg("exec mkdir -p ~/.gnupg")
+    swaymsg("exec cp /etc/gpg-agent.conf ~/.gnupg")
+
     swaymsg("exec DISPLAY=INVALID gpg --no-tty --yes --quick-generate-key test", succeed=False)
     machine.wait_until_succeeds("pgrep --exact gpg")
     wait_for_window("gpg")