From 38d8894676600e060aec04f694d7b4aa93908a97 Mon Sep 17 00:00:00 2001 From: Max Date: Sun, 3 Dec 2023 23:22:38 +0100 Subject: [PATCH] cluster/services/nextcloud: add dns records --- cluster/services/nextcloud/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cluster/services/nextcloud/default.nix b/cluster/services/nextcloud/default.nix index f349432..6a1e1a8 100644 --- a/cluster/services/nextcloud/default.nix +++ b/cluster/services/nextcloud/default.nix @@ -1,4 +1,4 @@ -{ depot, ... }: +{ config, depot, ... }: { services.nextcloud = { @@ -10,4 +10,8 @@ address = "https://storage.${depot.lib.meta.domain}/status.php"; module = "nextcloudStatus"; }; + + dns.records.storage.target = map + (node: depot.hours.${node}.interfaces.primary.addrPublic) + config.services.nextcloud.nodes.host; }