summaryrefslogtreecommitdiff
path: root/modules/binary-cache.nix
diff options
context:
space:
mode:
authorMel <mel@rnrd.eu>2026-10-11 23:08:24 +0200
committerMel <mel@rnrd.eu>2026-10-12 01:37:20 +0200
commit8f03ff20a1d54c737276bced569dc4f4dcc57aa3 (patch)
tree33df8cc0137107a378ddb6a88a4dbdaf845097bf /modules/binary-cache.nix
parent3b0a8f1b55ee8b0ddab92b84046c1cda73748b0a (diff)
downloadnetwork-8f03ff20a1d54c737276bced569dc4f4dcc57aa3.tar.zst
network-8f03ff20a1d54c737276bced569dc4f4dcc57aa3.zip
Address deprecations in 26.05HEADmain
Signed-off-by: Mel <mel@rnrd.eu>
Diffstat (limited to 'modules/binary-cache.nix')
-rw-r--r--modules/binary-cache.nix20
1 files changed, 11 insertions, 9 deletions
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 ];
+ package = pkgs.harmonia;
- settings = {
- bind = "127.0.0.1:${toString cachePort}";
- workers = 6;
- priority = 33;
+ cache = {
+ enable = true;
+ signKeyPaths = [ secrets.binary-cache-key.path ];
+
+ settings = {
+ bind = "127.0.0.1:${toString cachePort}";
+ workers = 6;
+ priority = 33;
+ };
};
};