about summary refs log tree commit diff
path: root/nixos/modules/programs
diff options
context:
space:
mode:
authorJohn Titor <50095635+JohnRTitor@users.noreply.github.com>2024-03-27 00:18:11 +0530
committerJohn Titor <50095635+JohnRTitor@users.noreply.github.com>2024-04-06 02:29:13 +0530
commitdfa44e80da5f1695dc4c0c66a59c7bea5a43a450 (patch)
tree8422e059d95f46098f4c5e866db78838377c5c46 /nixos/modules/programs
parent10d15891266d2113eb1f78a25eee291cdb64735f (diff)
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
Diffstat (limited to 'nixos/modules/programs')
-rw-r--r--nixos/modules/programs/wayland/hyprland.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/modules/programs/wayland/hyprland.nix b/nixos/modules/programs/wayland/hyprland.nix
index a295843267e17..bb2641762cad9 100644
--- a/nixos/modules/programs/wayland/hyprland.nix
+++ b/nixos/modules/programs/wayland/hyprland.nix
@@ -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"
       '';
     };
   };