Use empty flake registry; resolves #18

This commit is contained in:
Sridhar Ratnakumar 2023-04-27 09:48:39 -04:00
parent ac7458033f
commit 411274ba9a

View file

@ -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}'';
};
};
}