From 411274ba9a2452cbb40926e4ee74cc08d40830e3 Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Thu, 27 Apr 2023 09:48:39 -0400 Subject: [PATCH] Use empty flake registry; resolves #18 --- nixos/nix.nix | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/nixos/nix.nix b/nixos/nix.nix index a90e010..99827bd 100644 --- a/nixos/nix.nix +++ b/nixos/nix.nix @@ -16,9 +16,13 @@ nix = { nixPath = [ "nixpkgs=${flake.inputs.nixpkgs}" ]; # Enables use of `nix-shell -p ...` etc registry.nixpkgs.flake = flake.inputs.nixpkgs; # Make `nix shell` etc use pinned nixpkgs - settings.experimental-features = "nix-command flakes repl-flake"; - # I don't have an Intel mac. - settings.extra-platforms = lib.mkIf pkgs.stdenv.isDarwin "aarch64-darwin x86_64-darwin"; + settings = { + experimental-features = "nix-command flakes repl-flake"; + # I don't have an Intel mac. + extra-platforms = lib.mkIf pkgs.stdenv.isDarwin "aarch64-darwin x86_64-darwin"; + # Nullify the registry for purity. + flake-registry = builtins.toFile "empty-flake-registry.json" ''{"flakes":[],"version":2}''; + }; }; }