1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2024-12-15 17:50:53 +00:00

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
This commit is contained in:
greenpsi 2024-06-26 14:25:24 +02:00
parent 1a4f12ae0b
commit 080222601a

View file

@ -387,6 +387,7 @@ in {
* {env}`NIXOS_OZONE_WL` * {env}`NIXOS_OZONE_WL`
* {env}`XCURSOR_THEME` * {env}`XCURSOR_THEME`
* {env}`XCURSOR_SIZE` * {env}`XCURSOR_SIZE`
* {env}`PATH`
You can extend this list using the `systemd.variables` option. You can extend this list using the `systemd.variables` option.
''; '';
}; };
@ -402,6 +403,7 @@ in {
"NIXOS_OZONE_WL" "NIXOS_OZONE_WL"
"XCURSOR_THEME" "XCURSOR_THEME"
"XCURSOR_SIZE" "XCURSOR_SIZE"
"PATH"
]; ];
example = [ "-all" ]; example = [ "-all" ];
description = '' description = ''