about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-02-20 19:13:55 -0800
committerFranck Cuny <franck@fcuny.net>2022-02-21 08:43:35 -0800
commit3f2de55378baecf80e3843c2aa73446069f50522 (patch)
tree3a975e0375292ec64cf38fa5a4b957c67775cbb4
parentvideos: fix typo (diff)
downloadworld-3f2de55378baecf80e3843c2aa73446069f50522.tar.gz
sway: set some environment variables
Without these variables, I can't get pinentry to pop up when needed, and
firefox stays blurry.
-rw-r--r--users/fcuny/desktop/sway/default.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/users/fcuny/desktop/sway/default.nix b/users/fcuny/desktop/sway/default.nix
index 2836ed1..1efc10e 100644
--- a/users/fcuny/desktop/sway/default.nix
+++ b/users/fcuny/desktop/sway/default.nix
@@ -15,10 +15,20 @@
     pkgs.wofi
   ];
 
+  # Variables I want to be loaded by sway when started (this requires
+  # `systemdIntegration` to be set to `true`).
+  systemd.user.sessionVariables = {
+    # Without it, firefox stays blurry, no matter where I define that variable
+    MOZ_ENABLE_WAYLAND = 1;
+    # Without it, I can't get the pinentry prompt
+    WAYLAND_DISPLAY = "wayland-1";
+  };
+
   home.sessionVariables = {
     LIBSEAT_BACKEND = "logind";
     MOZ_ENABLE_WAYLAND = true;
     XDG_CURRENT_DESKTOP = "sway";
+    XDG_SESSION_TYPE = "wayland";
   };
 
   wayland.windowManager.sway = {