feat(nix): use Nix 2.35 via nixVersions.latest (#405)

Nix 2.35 brings lazy flake source copying, mimalloc (5-12% faster
evaluation), lower nix-daemon memory use, HTTP/3 support, and jittered
transfer retries with Retry-After.
This commit is contained in:
ryan4yin | 二花 authored and GitHub committed 2026-10-07 18:32:09 +08:00
1 parent b64adc4c20
commit 8f065f24bc
2 files changed
+6 -4

No files matched your search

+5 -4
View File
@@ -1,8 +1,9 @@
{ lib, ... }:
{ lib, pkgs, ... }:
{
# auto upgrade nix to the unstable version
# https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/tools/package-management/nix/default.nix#L284
# nix.package = pkgs.nixVersions.latest;
# Nix 2.35 is newer than nixpkgs' nixVersions.stable (still 2.34), so opt into
# the latest released version until stable catches up.
# https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/tools/package-management/nix/default.nix
nix.package = pkgs.nixVersions.latest;
# https://lix.systems/add-to-config/
# nix.package = pkgs.lix;