added cloudflare-dyndns to update-dns
This commit is contained in:
@@ -1,10 +1,21 @@
|
||||
{ config, pkgs, lib, ... }: {
|
||||
imports = [ ./base.nix ];
|
||||
config = {
|
||||
sops.secrets.dns = {
|
||||
sopsFile = ../../secrets/env.yaml;
|
||||
owner = config.users.users.jawz.name;
|
||||
inherit (config.users.users.jawz) group;
|
||||
sops.secrets = {
|
||||
cloudflare-api.sopsFile = ../../secrets/env.yaml;
|
||||
dns = {
|
||||
sopsFile = ../../secrets/env.yaml;
|
||||
owner = config.users.users.jawz.name;
|
||||
inherit (config.users.users.jawz) group;
|
||||
};
|
||||
};
|
||||
services.cloudflare-dyndns = {
|
||||
enable = true;
|
||||
ipv4 = true;
|
||||
ipv6 = false;
|
||||
proxied = true;
|
||||
domains = [ config.my.domainSecret ];
|
||||
apiTokenFile = config.sops.secrets.cloudflare-api.path;
|
||||
};
|
||||
my.scripts.update-dns = {
|
||||
enable = lib.mkDefault false;
|
||||
|
||||
@@ -81,6 +81,11 @@ in {
|
||||
default = "servidos.lat";
|
||||
description = "The domain name.";
|
||||
};
|
||||
domainSecret = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "wedsgk5ac2qcaf9yb.click";
|
||||
description = "The domain name.";
|
||||
};
|
||||
miniserver-ip = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "192.168.1.100";
|
||||
|
||||
Reference in New Issue
Block a user