When running “sudo nixos-rebuild switch --flake /etc/nixos#default” I’m getting this error message:
building the system configuration...
warning: Git tree '/etc/nixos' is dirty
error:
… while calling the 'head' builtin
at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/attrsets.nix:1575:11:
1574| || pred here (elemAt values 1) (head values) then
1575| head values
| ^
1576| else
… while evaluating the attribute 'value'
at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/modules.nix:816:9:
815| in warnDeprecation opt //
816| { value = addErrorContext "while evaluating the option `${showOption loc}':" value;
| ^
817| inherit (res.defsFinal') highestPrio;
… while evaluating the option `system.build.toplevel':
… while evaluating definitions from `/nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/nixos/modules/system/activation/top-level.nix':
… while evaluating the option `system.systemBuilderArgs':
… while evaluating definitions from `/nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/nixos/modules/system/activation/activatable-system.nix':
… while evaluating the option `system.activationScripts.etc.text':
… while evaluating definitions from `/nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/nixos/modules/system/etc/etc-activation.nix':
… while evaluating definitions from `/nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/nixos/modules/system/etc/etc.nix':
… while evaluating the option `environment.etc.dbus-1.source':
(stack trace truncated; use '--show-trace' to show the full, detailed trace)
error: 'utillinux' has been renamed to/replaced by 'util-linux'
When I run this command trying to find where I’m calling utillinux: “grep -r “utillinux” /etc/nixos”
Oh. I thought this was the problem: utillinux = if pkgs ? utillinux then pkgs.utillinux else pkgs.util-linux;
in “node-env.nix”
So I changed it to: utillinux = if (pkgs ? utillinux) && (builtins.tryEval pkgs.utillinux).success then pkgs.utillinux else pkgs.util-linux;
I just removed the apostrophe package because it was easier, FYI to anyone reading, considering the util-linux change was on the 19th, you may need to switch to something before then. Good luck!