From 844449b899a0ee0066d6431a67a95f3c7e2f63ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Wed, 26 Feb 2025 18:34:44 +0100 Subject: [PATCH] Disable using itself as substituter for nix-cache --- services/nix-cache/nix.nix | 7 +++++++ system/nix.nix | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 services/nix-cache/nix.nix diff --git a/services/nix-cache/nix.nix b/services/nix-cache/nix.nix new file mode 100644 index 0000000..16809c7 --- /dev/null +++ b/services/nix-cache/nix.nix @@ -0,0 +1,7 @@ +{ lib, ... }: +{ + nix.settings.substituters = lib.mkForce [ + "https://cache.nixos.org" + "https://cuda-maintainers.cachix.org" + ]; +} diff --git a/system/nix.nix b/system/nix.nix index 825ceb5..c754ddc 100644 --- a/system/nix.nix +++ b/system/nix.nix @@ -1,4 +1,4 @@ -{ ... }: +{ lib, ... }: { nix = { gc = { @@ -15,7 +15,7 @@ "https://cache.nixos.org" "https://cuda-maintainers.cachix.org" ]; - substituters = [ + substituters = lib.mkDefault [ "https://nix-cache.home.2rjus.net" "https://cache.nixos.org" "https://cuda-maintainers.cachix.org"