1
0
Fork 0
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:
Joonas Rautiola 2025-11-13 16:24:15 +02:00 committed by Robert Helgesson
parent 3ca51e0a33
commit 211594c88d
2 changed files with 4 additions and 0 deletions

View file

@ -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;
}; };

View file

@ -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