From 55b60f30d609674508a37c4dc44025728b737b02 Mon Sep 17 00:00:00 2001 From: Max Date: Tue, 23 Jul 2024 19:03:56 +0200 Subject: [PATCH] cluster/services/attic: use forService --- cluster/services/attic/default.nix | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/cluster/services/attic/default.nix b/cluster/services/attic/default.nix index 2f57697..814e8f6 100644 --- a/cluster/services/attic/default.nix +++ b/cluster/services/attic/default.nix @@ -33,7 +33,7 @@ }; }; - garage = { + garage = config.lib.forService "attic" { keys.attic.locksmith = { nodes = config.services.attic.nodes.server; owner = "atticd"; @@ -48,14 +48,16 @@ serverAddrs = map (node: depot.hours.${node}.interfaces.primary.addrPublic) config.services.attic.nodes.server; - in { + in config.lib.forService "attic" { cache.target = serverAddrs; }; - ways.cache-api = { - consulService = "atticd"; - extras.extraConfig = '' - client_max_body_size 4G; - ''; + ways = config.lib.forService "attic" { + cache-api = { + consulService = "atticd"; + extras.extraConfig = '' + client_max_body_size 4G; + ''; + }; }; }