From 8f03ff20a1d54c737276bced569dc4f4dcc57aa3 Mon Sep 17 00:00:00 2001 From: Mel Date: Sun, 11 Oct 2026 23:08:24 +0200 Subject: Address deprecations in 26.05 Signed-off-by: Mel --- modules/binary-cache.nix | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'modules/binary-cache.nix') diff --git a/modules/binary-cache.nix b/modules/binary-cache.nix index 8bbfb09..21979aa 100644 --- a/modules/binary-cache.nix +++ b/modules/binary-cache.nix @@ -1,7 +1,7 @@ # the public key for the current iteration of this cache is: # cache.rnrd.eu-1:6Q2MPTZ6ycAzWcc0VzXR+pKRlJ+6kfdQfj6iRsN5s1I= -{ config, unstablePkgs, ... }: +{ config, pkgs, ... }: let inherit (config.age) secrets; @@ -15,15 +15,17 @@ in services = { harmonia = { - enable = true; - # 24.11 does not include built-in zstd compression for harmonia yet. - package = unstablePkgs.harmonia; - signKeyPaths = [ secrets.binary-cache-key.path ]; - - settings = { - bind = "127.0.0.1:${toString cachePort}"; - workers = 6; - priority = 33; + package = pkgs.harmonia; + + cache = { + enable = true; + signKeyPaths = [ secrets.binary-cache-key.path ]; + + settings = { + bind = "127.0.0.1:${toString cachePort}"; + workers = 6; + priority = 33; + }; }; }; -- cgit v1.3.1