mirror of
https://github.com/srid/nixos-config.git
synced 2026-05-11 17:36:07 +08:00
Upgrade to latest Nix (2.23)
This commit is contained in:
parent
b856c8dcec
commit
2e6cada89a
1 changed files with 5 additions and 1 deletions
|
|
@ -14,11 +14,15 @@
|
|||
};
|
||||
|
||||
nix = {
|
||||
# Choose from https://search.nixos.org/packages?channel=unstable&from=0&size=50&sort=relevance&type=packages&query=nix
|
||||
package = pkgs.nixVersions.latest;
|
||||
|
||||
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 = {
|
||||
max-jobs = "auto";
|
||||
experimental-features = "nix-command flakes repl-flake";
|
||||
experimental-features = "nix-command flakes";
|
||||
# I don't have an Intel mac.
|
||||
extra-platforms = lib.mkIf pkgs.stdenv.isDarwin "aarch64-darwin x86_64-darwin";
|
||||
# Nullify the registry for purity.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue