From 99e0c4ec14963a7be7d88c56a7e95a5a95d324f3 Mon Sep 17 00:00:00 2001 From: Myned Date: Tue, 24 Dec 2024 09:24:53 -0500 Subject: [PATCH] hypridle: fix service start before graphical-session.target Signed-off-by: Myned --- options/custom/services/hypridle.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/options/custom/services/hypridle.nix b/options/custom/services/hypridle.nix index 6afb941..ddd100e 100644 --- a/options/custom/services/hypridle.nix +++ b/options/custom/services/hypridle.nix @@ -47,5 +47,13 @@ in { ]; }; }; + + # BUG: graphical-session-pre.target may not have WAYLAND_DISPLAY set, so service is skipped + # https://github.com/nix-community/home-manager/issues/5899 + systemd.user.services.hypridle = { + Unit = { + After = mkForce ["graphical-session.target"]; # graphical-session-pre.target + }; + }; }; }