mirror of
https://github.com/hyprwm/hyprland-wiki.git
synced 2024-11-22 12:45:59 +01:00
Nix: add systemd variables info
This commit is contained in:
parent
8b075fcdb9
commit
7ffbed85b6
1 changed files with 21 additions and 0 deletions
|
@ -195,3 +195,24 @@ gtk = {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Programs don't work in systemd services, but do on the terminal
|
||||||
|
|
||||||
|
This problem is related to Systemd not importing the environment by default. It
|
||||||
|
will not have knowledge of `PATH`, so it cannot run the commands in the
|
||||||
|
services. This is the most common with user-configured services such as
|
||||||
|
`hypridle` or `swayidle`.
|
||||||
|
|
||||||
|
To fix it, add to your config:
|
||||||
|
|
||||||
|
```nix
|
||||||
|
wayland.windowManager.hyprland.systemd.variables = ["--all"];
|
||||||
|
```
|
||||||
|
|
||||||
|
This setting will produce the following entry in the Hyprland config:
|
||||||
|
|
||||||
|
```ini
|
||||||
|
exec-once = dbus-update-activation-environment --systemd --all
|
||||||
|
```
|
||||||
|
|
||||||
|
Make sure to use the above command if you do not use the Home Manager module.
|
||||||
|
|
Loading…
Reference in a new issue