From adcf0b6281f4d8c00ea263c49f52a71130ee875f Mon Sep 17 00:00:00 2001 From: Thiago Kenji Okada Date: Tue, 31 Dec 2024 10:11:34 +0000 Subject: [PATCH] wob: use config.wayland.systemd.target --- modules/services/dunst.nix | 4 ++-- modules/services/wob.nix | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/services/dunst.nix b/modules/services/dunst.nix index 6b2727b3f..696783c15 100644 --- a/modules/services/dunst.nix +++ b/modules/services/dunst.nix @@ -180,8 +180,8 @@ in { systemd.user.services.dunst = { Unit = { Description = "Dunst notification daemon"; - After = [ "graphical-session-pre.target" ]; - PartOf = [ "graphical-session.target" ]; + After = [ config.wayland.systemd.target ]; + PartOf = [ config.wayland.systemd.target ]; }; Service = { diff --git a/modules/services/wob.nix b/modules/services/wob.nix index 8ca1befa8..d36565a00 100644 --- a/modules/services/wob.nix +++ b/modules/services/wob.nix @@ -50,8 +50,8 @@ in { Description = "A lightweight overlay volume/backlight/progress/anything bar for Wayland"; Documentation = "man:wob(1)"; - PartOf = "graphical-session.target"; - After = "graphical-session.target"; + PartOf = [ config.wayland.systemd.target ]; + After = [ config.wayland.systemd.target ]; ConditionEnvironment = "WAYLAND_DISPLAY"; }; Service = { @@ -59,7 +59,7 @@ in { ExecStart = builtins.concatStringsSep " " ([ (getExe cfg.package) ] ++ optional (cfg.settings != { }) "--config ${configFile}"); }; - Install.WantedBy = [ "graphical-session.target" ]; + Install.WantedBy = [ config.wayland.systemd.target ]; }; sockets.wob = {