mirror of
https://github.com/srid/nixos-config.git
synced 2026-01-09 09:50:14 +08:00
Use empty flake registry; resolves #18
This commit is contained in:
parent
ac7458033f
commit
411274ba9a
1 changed files with 7 additions and 3 deletions
|
|
@ -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}'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue