mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git
synced 2024-09-08 12:06:56 +00:00
18 lines
296 B
Nix
18 lines
296 B
Nix
|
{ config, pkgs, ... }:
|
||
|
let
|
||
|
domain = config.services.userdata.domain;
|
||
|
in
|
||
|
{
|
||
|
systemd = {
|
||
|
services = {
|
||
|
"acme-${domain}" = {
|
||
|
serviceConfig = {
|
||
|
StartLimitBurst = 5;
|
||
|
StartLimitIntervalSec = 5;
|
||
|
Restart = "on-failure";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|