mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-11 09:29:41 +08:00
swww: add package to service path
Signed-off-by: Joonas Rautiola <joonas@rautiola.co>
This commit is contained in:
committed by
Robert Helgesson
parent
3ca51e0a33
commit
211594c88d
@@ -50,6 +50,9 @@ in
|
||||
|
||||
Service = {
|
||||
ExecStart = "${lib.getExe' cfg.package "swww-daemon"} ${lib.escapeShellArgs cfg.extraArgs}";
|
||||
Environment = [
|
||||
"PATH=$PATH:${lib.makeBinPath [ cfg.package ]}"
|
||||
];
|
||||
Restart = "always";
|
||||
RestartSec = 10;
|
||||
};
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
WantedBy=graphical-session.target
|
||||
|
||||
[Service]
|
||||
Environment=PATH=$PATH:@swww@/bin
|
||||
ExecStart=@swww@/bin/swww-daemon --no-cache --layer bottom
|
||||
Restart=always
|
||||
RestartSec=10
|
||||
|
||||
Reference in New Issue
Block a user