From 0208592b59424449de69619d37f93f735de0fc33 Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Thu, 27 Feb 2025 12:32:59 -0500 Subject: [PATCH] idlehook: fix service.restart merge (#6544) --- modules/services/xidlehook.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/services/xidlehook.nix b/modules/services/xidlehook.nix index 8c8c874a4..77b4c1dfe 100644 --- a/modules/services/xidlehook.nix +++ b/modules/services/xidlehook.nix @@ -151,8 +151,8 @@ in { Service = { Type = if cfg.once then "oneshot" else "simple"; ExecStart = "${script}"; - }; + } // lib.optionalAttrs (!cfg.once) { Restart = "always"; }; Install.WantedBy = [ "graphical-session.target" ]; - } // pkgs.lib.optionalAttrs (!cfg.once) { Restart = "always"; }; + }; }; }