nixos/hyprland: set path order for systemd user services

Set PATH order correctly for systemd user services (see NixOS/nixpkgs#320734

Signed-off-by: Reputable2722 <153411261+Reputable2772@users.noreply.github.com>
This commit is contained in:
Reputable2722 2024-06-18 15:15:51 +05:30
parent 9c019cce96
commit dc423d5c69
No known key found for this signature in database

View File

@ -63,7 +63,7 @@ in
systemd = lib.mkIf cfg.systemd.setPath.enable { systemd = lib.mkIf cfg.systemd.setPath.enable {
user.extraConfig = '' user.extraConfig = ''
DefaultEnvironment="PATH=$PATH:/run/current-system/sw/bin:/etc/profiles/per-user/%u/bin:/run/wrappers/bin" DefaultEnvironment="PATH=/run/wrappers/bin:/etc/profiles/per-user/%u/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin:$PATH"
''; '';
}; };
} }