14 lines
369 B
Nix
14 lines
369 B
Nix
{ pkgs, lib, ... }: {
|
|
imports = [ ./base.nix ];
|
|
config.my.scripts.update-dns = {
|
|
enable = lib.mkDefault false;
|
|
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);
|
|
};
|
|
}
|