Skip to content

Commit

Permalink
feat(bro): use custom cloudflare-ddns instead of cfdyndns
Browse files Browse the repository at this point in the history
  • Loading branch information
diogotcorreia committed Jun 12, 2024
1 parent 7d58611 commit 815e8ca
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 21 deletions.
27 changes: 7 additions & 20 deletions hosts/bro/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,18 @@
{
config,
hostSecretsDir,
inputs,
lib,
pkgs,
profiles,
...
}: {
disabledModules = ["services/misc/cfdyndns.nix"];
imports =
[
(inputs.nixpkgs-unstable + "/nixos/modules/services/misc/cfdyndns.nix")
]
++ (with profiles; [
services.caddy.common
services.caddy.rproxy
services.grocy
services.ssh
]);
imports = with profiles; [
networking.ddns.cloudflare
services.caddy.common
services.caddy.rproxy
services.grocy
services.ssh
];

# ZFS configuration
services.zfs.autoScrub.enable = true;
Expand All @@ -38,7 +33,6 @@
group = config.security.acme.defaults.group;
};
broAutoUpgradeHealthchecksUrl.file = "${hostSecretsDir}/autoUpgradeHealthchecksUrl.age";
broCfdyndnsToken.file = "${hostSecretsDir}/cfdyndnsToken.age";
broHealthchecksUrl.file = "${hostSecretsDir}/healthchecksUrl.age";
broNebulaCert = {
file = "${hostSecretsDir}/nebulaCert.age";
Expand Down Expand Up @@ -72,13 +66,6 @@
};
};

# Cloudflare Dynamic DNS
services.cfdyndns = {
enable = true;
records = ["world.bro.diogotc.com"];
apiTokenFile = config.age.secrets.broCfdyndnsToken.path;
};

my.networking.wiredInterface = "eno1";

# Modules
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion secrets/secrets.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ in {

"bro/acmeDnsCredentials.age".publicKeys = [broSystem];
"bro/autoUpgradeHealthchecksUrl.age".publicKeys = [broSystem];
"bro/cfdyndnsToken.age".publicKeys = [broSystem];
"bro/cloudflareToken.age".publicKeys = [broSystem];
"bro/hassSecrets.age".publicKeys = [broSystem];
"bro/healthchecksUrl.age".publicKeys = [broSystem];
"bro/nebulaCert.age".publicKeys = [broSystem];
Expand Down

0 comments on commit 815e8ca

Please sign in to comment.