From a6db8c8f6c201df0cfb5482241368ac02a5b17f3 Mon Sep 17 00:00:00 2001 From: Thiago Kenji Okada Date: Tue, 31 Dec 2024 10:14:30 +0000 Subject: [PATCH] hypridle: use config.wayland.systemd.target --- modules/services/hypridle.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/services/hypridle.nix b/modules/services/hypridle.nix index 0d8a337b..c2165e5b 100644 --- a/modules/services/hypridle.nix +++ b/modules/services/hypridle.nix @@ -74,13 +74,13 @@ in { }; systemd.user.services.hypridle = { - Install = { WantedBy = [ "graphical-session.target" ]; }; + Install = { WantedBy = [ config.wayland.systemd.target ]; }; Unit = { ConditionEnvironment = "WAYLAND_DISPLAY"; Description = "hypridle"; - After = [ "graphical-session-pre.target" ]; - PartOf = [ "graphical-session.target" ]; + After = [ config.wayland.systemd.target ]; + PartOf = [ config.wayland.systemd.target ]; X-Restart-Triggers = mkIf (cfg.settings != { }) [ "${config.xdg.configFile."hypr/hypridle.conf".source}" ]; };