Files
Olympus/modules/features/dynamicDNS.nix
2026-04-22 12:30:34 -05:00

39 lines
708 B
Nix

{ ... }: {
flake.nixosModules.dynamicDNS = { config, lib, pkgs, ... }: {
config = {
systemd.timers.dynamicDNS = {
wantedBy = [ "timers.target" ];
timerConfig = {
OnBootSec = "5m";
OnUnitActiveSec = "1h";
Unit = "dynamicDNS.service";
};
};
systemd.services.dynamicDNS = {
name = "dynamicDNS.service";
serviceConfig = {
Type = "oneshot";
LoadCredential = [ "cloudflare-api-key" ];
};
script = '''';
};
};
};
}