From 3f2de55378baecf80e3843c2aa73446069f50522 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sun, 20 Feb 2022 19:13:55 -0800 Subject: sway: set some environment variables Without these variables, I can't get pinentry to pop up when needed, and firefox stays blurry. --- users/fcuny/desktop/sway/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'users/fcuny/desktop/sway/default.nix') 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 = { -- cgit 1.4.1