From 5c2d36800e79c92ed5ad3c96012a0ac302880df5 Mon Sep 17 00:00:00 2001 From: Jonni Liljamo Date: Fri, 23 Jan 2026 17:43:46 +0200 Subject: [PATCH] nix: use substituters for both trusted and normal --- modules/nixos/nix.nix | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/modules/nixos/nix.nix b/modules/nixos/nix.nix index e1ae565..c6935a3 100644 --- a/modules/nixos/nix.nix +++ b/modules/nixos/nix.nix @@ -1,4 +1,9 @@ -{ +let + substituters = [ + "https://cache.hydra.lab.liljamo.com" + "https://hyprland.cachix.org" + ]; +in { flake.modules.nixos.nix = {...}: { nix = { gc = { @@ -10,10 +15,8 @@ auto-optimise-store = true; experimental-features = ["nix-command" "flakes"]; trusted-users = ["@wheel"]; - trusted-substituters = [ - "https://cache.hydra.lab.liljamo.com" - "https://hyprland.cachix.org" - ]; + substituters = substituters; + trusted-substituters = substituters; trusted-public-keys = [ "hydracache:gJygjf4gFURF0LZhKosqLyFW4PG/EMgJSaAbaCnsOEA=" "hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc=" -- 2.44.1