From e351a613109f9570421633b3e4ab242330e3b00a Mon Sep 17 00:00:00 2001 From: yysushi Date: Mon, 24 Jun 2024 09:40:04 -0700 Subject: [PATCH] fixed an issue during bootstrap0. pkgs.nixUnstable seems deprecated, so use pkgs.nixVersions.latest instead. otherwise the following error occurs. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ``` 1574| || pred here (elemAt values 1) (head values) then 1575| head values | ^ 1576| else … while evaluating the attribute 'value' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:809:9: 808| in warnDeprecation opt // 809| { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value; | ^ 810| inherit (res.defsFinal') highestPrio; (stack trace truncated; use '--show-trace' to show the full trace) error: nixVersions.unstable has been removed. For bleeding edge (Nix master, roughly weekly updated) use nixVersions.git, otherwise use nixVersions.latest. ``` --- Makefile | 2 +- machines/wsl.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index f039201d..f53321c0 100644 --- a/Makefile +++ b/Makefile @@ -64,7 +64,7 @@ vm/bootstrap0: mount /dev/disk/by-label/boot /mnt/boot; \ nixos-generate-config --root /mnt; \ sed --in-place '/system\.stateVersion = .*/a \ - nix.package = pkgs.nixUnstable;\n \ + nix.package = pkgs.nixVersions.latest;\n \ nix.extraOptions = \"experimental-features = nix-command flakes\";\n \ nix.settings.substituters = [\"https://mitchellh-nixos-config.cachix.org\"];\n \ nix.settings.trusted-public-keys = [\"mitchellh-nixos-config.cachix.org-1:bjEbXJyLrL1HZZHBbO4QALnI5faYZppzkU4D2s0G8RQ=\"];\n \ diff --git a/machines/wsl.nix b/machines/wsl.nix index f1812eb4..cab86664 100644 --- a/machines/wsl.nix +++ b/machines/wsl.nix @@ -9,7 +9,7 @@ }; nix = { - package = pkgs.nixUnstable; + package = pkgs.nixVersions.latest; extraOptions = '' experimental-features = nix-command flakes keep-outputs = true