From dc12fa8d8f6622f6e5674f661e15faf1487aae8c Mon Sep 17 00:00:00 2001 From: Max Date: Tue, 23 Jul 2024 19:05:45 +0200 Subject: [PATCH] cluster/services/forge: use forService --- cluster/services/forge/default.nix | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/cluster/services/forge/default.nix b/cluster/services/forge/default.nix index 6bc14a5..0259ab7 100644 --- a/cluster/services/forge/default.nix +++ b/cluster/services/forge/default.nix @@ -19,19 +19,21 @@ ways.forge.target = let host = builtins.head config.services.forge.nodes.server; - in config.hostLinks.${host}.forge.url; + in config.lib.forService "forge" config.hostLinks.${host}.forge.url; - garage = { + garage = config.lib.forService "forge" { keys.forgejo.locksmith.nodes = config.services.forge.nodes.server; buckets.forgejo.allow.forgejo = [ "read" "write" ]; }; - monitoring.blackbox.targets.forge = { + monitoring.blackbox.targets.forge = config.lib.forService "forge" { address = "https://forge.${depot.lib.meta.domain}/api/v1/version"; module = "https2xx"; }; - dns.records."ssh.forge".target = map - (node: depot.hours.${node}.interfaces.primary.addrPublic) - config.services.forge.nodes.server; + dns.records = config.lib.forService "forge" { + "ssh.forge".target = map + (node: depot.hours.${node}.interfaces.primary.addrPublic) + config.services.forge.nodes.server; + }; }