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; }