diff options
Diffstat (limited to 'hosts/poweredge/ddns-updater.nix')
| -rw-r--r-- | hosts/poweredge/ddns-updater.nix | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/hosts/poweredge/ddns-updater.nix b/hosts/poweredge/ddns-updater.nix new file mode 100644 index 0000000..103c23b --- /dev/null +++ b/hosts/poweredge/ddns-updater.nix @@ -0,0 +1,19 @@ +{ config, lib, ... }: { + # Password file for mail application password + sops.secrets.ddns-updater-config.sopsFile = ./resources/secrets/ddns-updater-config.yaml; + + # Enable ddns updater + services.ddns-updater = { + enable = true; + environment = { + SERVER_ENABLED="no"; + CONFIG_FILEPATH = config.sops.secrets.ddns-updater-config.path; + PERIOD = "5m"; + }; + }; + + # FIXME Required root permissions to open secret + systemd.services.ddns-updater = { + serviceConfig.DynamicUser = lib.mkForce false; + }; +} |
