acme: RestartSec = 15 * 60

pull/55/head
Alexander 2023-12-04 13:22:27 +04:00
parent c0aa73ca1b
commit c63b6b808c
1 changed files with 5 additions and 1 deletions

View File

@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ config, lib, ... }:
let
domain = config.selfprivacy.domain;
in
@ -10,6 +10,10 @@ in
StartLimitBurst = 5;
StartLimitIntervalSec = 5;
Restart = "on-failure";
RestartSec =
if lib.versionOlder config.system.nixos.release "23.11"
then 15 * 60
else abort "since NixOS 23.11 (#266155) ACME systemd service restart intervals should have been fixed, thus no workarounds are needed";
};
};
};