From 5565e6a29d32bd3221936799afdf84527cf5aede Mon Sep 17 00:00:00 2001 From: Andrea Ciceri Date: Sat, 1 Apr 2023 14:52:49 +0200 Subject: [PATCH] Disabling substituters at system level --- modules/nix/default.nix | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/modules/nix/default.nix b/modules/nix/default.nix index edceeb9..260ce90 100644 --- a/modules/nix/default.nix +++ b/modules/nix/default.nix @@ -6,24 +6,28 @@ }: { nix = { settings = { + optimise.automatic = true; auto-optimise-store = true; + trusted-users = [ "root" "ccr" "@wheel" ]; - trusted-public-keys = [ - "hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ=" - "mlabs.cachix.org-1:gStKdEqNKcrlSQw5iMW6wFCj3+b+1ASpBVY2SYuNV2M=" - "aciceri-fleet.cachix.org-1:e1AodrwmzRWy0eQi3lUY71M41fp9Sq+UpuKKv705xsI=" - "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" - ]; - substituters = [ - "https://cache.iog.io" - "https://mlabs.cachix.org" - "https://aciceri-fleet.cachix.org" - "https://nix-community.cachix.org" - ]; + + # Disabled all the substituters, this should be managed at flakes level + # trusted-public-keys = [ + # "hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ=" + # "mlabs.cachix.org-1:gStKdEqNKcrlSQw5iMW6wFCj3+b+1ASpBVY2SYuNV2M=" + # "aciceri-fleet.cachix.org-1:e1AodrwmzRWy0eQi3lUY71M41fp9Sq+UpuKKv705xsI=" + # "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" + # ]; + # substituters = [ + # "https://cache.iog.io" + # "https://mlabs.cachix.org" + # "https://aciceri-fleet.cachix.org" + # "https://nix-community.cachix.org" + # ]; }; extraOptions = '' @@ -35,7 +39,5 @@ dates = "weekly"; options = "--delete-older-than 30d"; }; - - optimise.automatic = true; }; }