idlehook: fix service.restart merge (#6544)

This commit is contained in:
Austin Horstman
2025-02-27 12:32:59 -05:00
committed by GitHub
parent cf3bf4f1b7
commit 0208592b59

View File

@@ -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"; };
};
};
}