Skip to content
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

Hyprland: Order of PATH Environment Variable is incorrect for user services #320734

Open
Reputable2772 opened this issue Jun 18, 2024 · 0 comments · May be fixed by #320737
Open

Hyprland: Order of PATH Environment Variable is incorrect for user services #320734

Reputable2772 opened this issue Jun 18, 2024 · 0 comments · May be fixed by #320737

Comments

@Reputable2772
Copy link

Describe the bug

In the file, nixos/modules/programs/wayland/hyprland.nix, the priority for the PATH is set incorrectly with /run/wrappers/bin at the end. This causes permission issues with systemd services.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Create a systemd user service, which uses any file in /run/wrappers/bin in the Exec= line.
  2. Run the systemd service.

Expected behavior

Permissions errors should not have occurred with the systemd service.

Additional context

Current workaround.

programs.hyprland.systemd.setPath.enable = false;
systemd.user.extraConfig = ''
  DefaultEnvironment="PATH=/run/wrappers/bin:/etc/profiles/per-user/%u/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin:$PATH"
'';

Notify maintainers

@fufexan

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.9.3-zen1, NixOS, 24.11 (Vicuña), 24.11.20240612.57d6973`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.22.1`
 - nixpkgs: `/nix/store/dydg48djlykksz8cxq0xjplyxpa9pvf4-source`

Add a 👍 reaction to issues you find important.

Reputable2772 added a commit to Reputable2772/nixpkgs that referenced this issue Jun 18, 2024
Set PATH order correctly for systemd user services (see NixOS#320734

Signed-off-by: Reputable2722 <[email protected]>
@Reputable2772 Reputable2772 linked a pull request Jun 18, 2024 that will close this issue
13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant