Skip to content

Commit

Permalink
nixos/hyprland: systemd.setPath - fix user profile bin directory
Browse files Browse the repository at this point in the history
%u modifier can be used to get the username in systemd config
$USER var expansion does not work without manually importing $USER
Should fix opening links in home manager/user profile programs
  • Loading branch information
JohnRTitor committed Apr 11, 2024
1 parent 9306e3c commit 1198dc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixos/modules/programs/wayland/hyprland.nix
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ in

systemd = mkIf cfg.systemd.setPath.enable {
user.extraConfig = ''
DefaultEnvironment="PATH=$PATH:/run/current-system/sw/bin:/etc/profiles/per-user/$USER/bin:/run/wrappers/bin"
DefaultEnvironment="PATH=$PATH:/run/current-system/sw/bin:/etc/profiles/per-user/%u/bin:/run/wrappers/bin"
'';
};
};
Expand Down

0 comments on commit 1198dc8

Please sign in to comment.