mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-05 08:31:03 +01:00
swww: add package to service path
Signed-off-by: Joonas Rautiola <joonas@rautiola.co>
This commit is contained in:
parent
3ca51e0a33
commit
211594c88d
2 changed files with 4 additions and 0 deletions
|
|
@ -50,6 +50,9 @@ in
|
||||||
|
|
||||||
Service = {
|
Service = {
|
||||||
ExecStart = "${lib.getExe' cfg.package "swww-daemon"} ${lib.escapeShellArgs cfg.extraArgs}";
|
ExecStart = "${lib.getExe' cfg.package "swww-daemon"} ${lib.escapeShellArgs cfg.extraArgs}";
|
||||||
|
Environment = [
|
||||||
|
"PATH=$PATH:${lib.makeBinPath [ cfg.package ]}"
|
||||||
|
];
|
||||||
Restart = "always";
|
Restart = "always";
|
||||||
RestartSec = 10;
|
RestartSec = 10;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@
|
||||||
WantedBy=graphical-session.target
|
WantedBy=graphical-session.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
Environment=PATH=$PATH:@swww@/bin
|
||||||
ExecStart=@swww@/bin/swww-daemon --no-cache --layer bottom
|
ExecStart=@swww@/bin/swww-daemon --no-cache --layer bottom
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=10
|
RestartSec=10
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue