-
-
Notifications
You must be signed in to change notification settings - Fork 13.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nixos/hyprland: Add systemd.setPath.enable option to include system and user bin directory in PATH #298896
Conversation
@wozeparrot @fufexan Hyprland package maintainers |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
One thing though, mdDoc
is now the default and can be omitted. Can you perhaps also remove any occurrence of it in a separate commit?
Done. Also added possible binary dirs such as the user packages bin, profiles/default/bin... @fufexan please check. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The commits should start with nixos/hyprland: ...
and possibly have more concise titles. Further explanations can go into the commit message.
Commit names still aren't fixed. |
How do I amend previously created commits? |
You can do |
Thanks for the tip :) I have updated the commit titles. Please check. |
The last two commits can be squashed into one. Using the same rebase mechanism, switch the last commit from |
Done. Thanks :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-ready-for-review/3032/3716 |
This commit adds systemd.setPath.enable option to hyprland module which sets the systemd path to include the current system's bin This is needed in Hyprland only setups, where opening links in applications like VS code do not work.
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
@wegank I just rebased it :) no new changes |
@Mic92 could you please review it? Fufexan approved this change but still need a commiter to merge. |
Since this was merged i get the following:
It worked fine before. Might this be caused by this PR or is this unrelated? |
Note: you can disable this by setting the following in your configuration.nix: programs.hyprland.systemd.setPath.enable = false; |
Exactly. Before, the window stayed open as intended. When i first run
Sorry, i didn't think of that. I disabled it and the behaviour is still there. So i guess my problem is unrelated to this PR, sorry. |
Description of changes
This PR adds systemd.setPath.enable option to hyprland module which sets systemd default environment path to include the current system's bin, profile bin and current user's bin.
This is needed in Hyprland only setups, where opening links in applications like VS code do not work without explicitly importing PATH using systemctl.
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.