mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-05 16:41:04 +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 = {
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue