From dfa44e80da5f1695dc4c0c66a59c7bea5a43a450 Mon Sep 17 00:00:00 2001 From: John Titor <50095635+JohnRTitor@users.noreply.github.com> Date: Wed, 27 Mar 2024 00:18:11 +0530 Subject: 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 --- nixos/modules/programs/wayland/hyprland.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'nixos/modules/programs') 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" ''; }; }; -- cgit 1.4.1