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 ];