From b86a604de599770ccb4626bce9bae39188ec50e3 Mon Sep 17 00:00:00 2001 From: arcnmx Date: Wed, 3 Sep 2025 20:05:47 -0700 Subject: [PATCH] chore: disable nix flake registry --- nixos/base/nix.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nixos/base/nix.nix b/nixos/base/nix.nix index 62823c60..fb759ce3 100644 --- a/nixos/base/nix.nix +++ b/nixos/base/nix.nix @@ -66,6 +66,12 @@ in { "ryantrinkle.com-1:JJiAKaRv9mWgpVAz8dwewnZe0AzzEAzPkagE9SP5NWI=" ]; trusted-users = ["root" "@wheel"]; + flake-registry = let + registryPath = "nix/registry.json"; + in mkMerge [ + (mkIf (config.nix.registry != {}) "/etc/${registryPath}") + (mkDefault "") + ]; }; extraOptions = mkIf hasSops '' !include ${config.sops.secrets.github-access-token-public.path}