19 lines
364 B
Nix
19 lines
364 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
{
|
|
imports = [ ./base.nix ];
|
|
config.my.scripts.update-dns = {
|
|
enable = true;
|
|
install = true;
|
|
service = true;
|
|
name = "update-dns";
|
|
timer = "*:0/30";
|
|
description = "Updates the IP of all my domains";
|
|
package = pkgs.writeScriptBin "update-dns" (builtins.readFile ../../scripts/update-dns.sh);
|
|
};
|
|
}
|