nix: pin nixpkgs in registry to flake nixpkgs

This commit is contained in:
Sam W 2023-02-28 22:02:05 +00:00
parent 17988ec069
commit ca7b30470f
1 changed files with 5 additions and 0 deletions

View File

@ -53,6 +53,11 @@
package = pkgs.nix;
settings.experimental-features = "nix-command flakes";
settings.max-jobs = "auto"; # Gotta go fast (build derivations in parallel)
# Pin the nixpkgs registry to our locked nixpkgs. This means that we
# get the same packages via e.g. nix shell as we have at the system
# level, so less duplication overall and no more fetching that 30MB src
# every time you run nix shell.
registry.nixpkgs.flake = inputs.nixpkgs;
};
})
];