From 080222601a4fcfe31bfe8e17a99ceccfc5eaf572 Mon Sep 17 00:00:00 2001 From: greenpsi Date: Wed, 26 Jun 2024 14:25:24 +0200 Subject: [PATCH] sway: add PATH to systemd.variables Flatpak apps use xdg-desktop-portals to open e.g. links in the default browser. For this to work, the xdg-desktop-portal user service needs the PATH environment variable to be set correctly. See the following issue and especially the linked comment for details: https://github.com/NixOS/nixpkgs/issues/189851#issuecomment-1238907955 --- modules/services/window-managers/i3-sway/sway.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/services/window-managers/i3-sway/sway.nix b/modules/services/window-managers/i3-sway/sway.nix index bc20e9d9..3622e746 100644 --- a/modules/services/window-managers/i3-sway/sway.nix +++ b/modules/services/window-managers/i3-sway/sway.nix @@ -387,6 +387,7 @@ in { * {env}`NIXOS_OZONE_WL` * {env}`XCURSOR_THEME` * {env}`XCURSOR_SIZE` + * {env}`PATH` You can extend this list using the `systemd.variables` option. ''; }; @@ -402,6 +403,7 @@ in { "NIXOS_OZONE_WL" "XCURSOR_THEME" "XCURSOR_SIZE" + "PATH" ]; example = [ "-all" ]; description = ''