Adds dyndns-updated launchd service
This commit is contained in:
parent
6c021c3ea0
commit
83597f449f
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
||||
.DS_Store
|
||||
.cloudflare_dns_updater_api_token
|
||||
|
18
home.nix
18
home.nix
@ -183,4 +183,22 @@
|
||||
(import ./dm-mono.nix { inherit lib fetchzip; })
|
||||
];
|
||||
|
||||
launchd.agents.dyndns-updater = {
|
||||
enable = true;
|
||||
config = {
|
||||
Program = "${pkgs.cloudflare-dyndns}/bin/cloudflare-dyndns";
|
||||
ProgramArguments = [
|
||||
"${pkgs.cloudflare-dyndns}/bin/cloudflare-dyndns"
|
||||
"--api-token"
|
||||
(builtins.readFile ./.cloudflare_dns_updater_api_token)
|
||||
"--debug"
|
||||
"home.abhinavsarkar.net"
|
||||
];
|
||||
StandardErrorPath = "/tmp/cloudflare-dyndns.log";
|
||||
StandardOutPath = "/tmp/cloudflare-dyndns.log";
|
||||
StartInterval = 600;
|
||||
ProcessType = "Background";
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user