Skip to content

Commit

Permalink
nixos/hyprland: Add possible bin directory paths, ie, user packages bin
Browse files Browse the repository at this point in the history
If user chooses, they can `exec-once=dbus-update-activation-environment --systemd --all` in hyprland.conf
To import all path variables from the system's environment to systemd's environment

Also set option example to false
  • Loading branch information
JohnRTitor committed Apr 5, 2024
1 parent 10d1589 commit dfa44e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nixos/modules/programs/wayland/hyprland.nix
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ in

systemd.setPath.enable = mkEnableOption null // {
default = true;
example = false;
description = ''
Set environment path of systemd to include the current system's bin directory.
This is needed in Hyprland setups, where opening links in applications do not work.
Expand Down Expand Up @@ -75,7 +76,7 @@ in

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

0 comments on commit dfa44e8

Please sign in to comment.