nixos/hyprland: Add possible bin directory paths, ie, user packages bin

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
This commit is contained in:
John Titor 2024-03-27 00:18:11 +05:30
parent 10d1589126
commit dfa44e80da
No known key found for this signature in database
GPG Key ID: 29B0514F4E3C1CC0
1 changed files with 2 additions and 1 deletions

View File

@ -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.
@ -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"
'';
};
};