From 1b3a091faed092b4fd99b1fe7969405d04f8ec47 Mon Sep 17 00:00:00 2001 From: Fabian Hauser Date: Sun, 8 Dec 2024 17:16:55 +0200 Subject: [PATCH] Remove self-hosted subsitution services from lindberg-build --- .../lindberg-build/applications/default.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/nixos-configurations/lindberg-build/applications/default.nix b/nixos-configurations/lindberg-build/applications/default.nix index d38f4f0..84978fb 100644 --- a/nixos-configurations/lindberg-build/applications/default.nix +++ b/nixos-configurations/lindberg-build/applications/default.nix @@ -1,4 +1,9 @@ -{ config, pkgs, ... }: +{ + config, + pkgs, + lib, + ... +}: { imports = [ @@ -8,4 +13,11 @@ qois.git-ci-runner.enable = true; qois.postgresql.package = pkgs.postgresql_15; + + # Remove substituters that are hosted on this node, to prevent lockups. + # The qois-infrastructure cache is not needed, + # since the builds are done (and cached) on this host anyway. + nix.settings.substituters = lib.mkForce [ + "https://cache.nixos.org?priority=40" + ]; }