mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git
synced 2024-11-08 17:43:11 +00:00
80ba7d0bda
+ simple-nixos-mailserver as an SP module
18 lines
299 B
Nix
18 lines
299 B
Nix
{ config, pkgs, ... }:
|
|
let
|
|
domain = config.selfprivacy.userdata.domain;
|
|
in
|
|
{
|
|
systemd = {
|
|
services = {
|
|
"acme-${domain}" = {
|
|
serviceConfig = {
|
|
StartLimitBurst = 5;
|
|
StartLimitIntervalSec = 5;
|
|
Restart = "on-failure";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|