1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2025-01-11 03:29:50 +01:00

wob: use config.wayland.systemd.target

This commit is contained in:
Thiago Kenji Okada 2024-12-31 10:11:34 +00:00 committed by Robert Helgesson
parent 51ba4aacec
commit adcf0b6281
No known key found for this signature in database
GPG key ID: 96E745BD17AA17ED
2 changed files with 5 additions and 5 deletions

View file

@ -180,8 +180,8 @@ in {
systemd.user.services.dunst = { systemd.user.services.dunst = {
Unit = { Unit = {
Description = "Dunst notification daemon"; Description = "Dunst notification daemon";
After = [ "graphical-session-pre.target" ]; After = [ config.wayland.systemd.target ];
PartOf = [ "graphical-session.target" ]; PartOf = [ config.wayland.systemd.target ];
}; };
Service = { Service = {

View file

@ -50,8 +50,8 @@ in {
Description = Description =
"A lightweight overlay volume/backlight/progress/anything bar for Wayland"; "A lightweight overlay volume/backlight/progress/anything bar for Wayland";
Documentation = "man:wob(1)"; Documentation = "man:wob(1)";
PartOf = "graphical-session.target"; PartOf = [ config.wayland.systemd.target ];
After = "graphical-session.target"; After = [ config.wayland.systemd.target ];
ConditionEnvironment = "WAYLAND_DISPLAY"; ConditionEnvironment = "WAYLAND_DISPLAY";
}; };
Service = { Service = {
@ -59,7 +59,7 @@ in {
ExecStart = builtins.concatStringsSep " " ([ (getExe cfg.package) ] ExecStart = builtins.concatStringsSep " " ([ (getExe cfg.package) ]
++ optional (cfg.settings != { }) "--config ${configFile}"); ++ optional (cfg.settings != { }) "--config ${configFile}");
}; };
Install.WantedBy = [ "graphical-session.target" ]; Install.WantedBy = [ config.wayland.systemd.target ];
}; };
sockets.wob = { sockets.wob = {