From 4cbc8a58ab94e5eea5fe3185837d6489579a7f68 Mon Sep 17 00:00:00 2001 From: Thiago Kenji Okada Date: Tue, 31 Dec 2024 10:04:04 +0000 Subject: [PATCH] swaync: use config.wayland.systemd.target --- modules/services/swaync.nix | 6 +++--- tests/modules/services/swaync/swaync.nix | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/services/swaync.nix b/modules/services/swaync.nix index 5f813af3..b8bb912b 100644 --- a/modules/services/swaync.nix +++ b/modules/services/swaync.nix @@ -95,8 +95,8 @@ in { Unit = { Description = "Swaync notification daemon"; Documentation = "https://github.com/ErikReider/SwayNotificationCenter"; - PartOf = [ "graphical-session.target" ]; - After = [ "graphical-session-pre.target" ]; + PartOf = [ config.wayland.systemd.target ]; + After = [ config.wayland.systemd.target ]; ConditionEnvironment = "WAYLAND_DISPLAY"; }; @@ -107,7 +107,7 @@ in { Restart = "on-failure"; }; - Install.WantedBy = [ "graphical-session.target" ]; + Install.WantedBy = [ config.wayland.systemd.target ]; }; }; } diff --git a/tests/modules/services/swaync/swaync.nix b/tests/modules/services/swaync/swaync.nix index ceb3bf06..550e5fed 100644 --- a/tests/modules/services/swaync/swaync.nix +++ b/tests/modules/services/swaync/swaync.nix @@ -24,7 +24,7 @@ Type=dbus [Unit] - After=graphical-session-pre.target + After=graphical-session.target ConditionEnvironment=WAYLAND_DISPLAY Description=Swaync notification daemon Documentation=https://github.com/ErikReider/SwayNotificationCenter