mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git
synced 2024-11-27 13:21:28 +00:00
23 lines
422 B
Nix
23 lines
422 B
Nix
|
{ config, pkgs, ... }:
|
||
|
let
|
||
|
domain = config.services.userdata.domain;
|
||
|
in
|
||
|
{
|
||
|
systemd = {
|
||
|
services = {
|
||
|
"acme-${domain}" = {
|
||
|
serviceConfig = {
|
||
|
StartLimitBurst = 5;
|
||
|
StartLimitIntervalSec = 5;
|
||
|
Restart = "on-failure";
|
||
|
};
|
||
|
};
|
||
|
"nginx-config-reload" = {
|
||
|
serviceConfig = {
|
||
|
After = [ "acme-${domain}.service" ];
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|