From a96971fba41fe43ee2263c377c54d7eb7fa7c85f Mon Sep 17 00:00:00 2001 From: Damocles Date: Sat, 18 Apr 2026 09:49:09 +0200 Subject: [PATCH] change systemd restart policy to always with rate limiting --- nix/hm-module.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nix/hm-module.nix b/nix/hm-module.nix index d5f5691..821b706 100644 --- a/nix/hm-module.nix +++ b/nix/hm-module.nix @@ -282,7 +282,10 @@ in }; Service = { ExecStart = lib.getExe cfg.package; - Restart = "on-failure"; + Restart = "always"; + RestartSec = 1; + StartLimitIntervalSec = 30; + StartLimitBurst = 5; Slice = "session.slice"; }; Install.WantedBy = [ cfg.systemd.target ];