selfprivacy-nixos-config/letsencrypt/resolve.nix

22 lines
553 B
Nix
Raw Normal View History

2023-12-04 09:22:27 +00:00
{ config, lib, ... }:
2021-11-15 10:02:05 +00:00
let
domain = config.selfprivacy.domain;
2021-11-15 10:02:05 +00:00
in
{
systemd = {
services = {
"acme-${domain}" = {
serviceConfig = {
StartLimitBurst = 5;
StartLimitIntervalSec = 5;
Restart = "on-failure";
2023-12-04 09:22:27 +00:00
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";
2021-11-15 10:02:05 +00:00
};
};
};
};
}