Hello there! So I’m trying to switch to flakes with help of NixOS & Flakes book. After sudo nixos-rebuild switch
command I got an error:
error:
… while calling the 'head' builtin
at /nix/store/6nfpbajyzwxq6wrhn20l13rhckhv26rc-source/lib/attrsets.nix:922:11:
921| || pred here (elemAt values 1) (head values) then
922| head values
| ^
923| else
… while evaluating the attribute 'value'
at /nix/store/6nfpbajyzwxq6wrhn20l13rhckhv26rc-source/lib/modules.nix:807:9:
806| in warnDeprecation opt //
807| { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value;
| ^
808| inherit (res.defsFinal') highestPrio;
(stack trace truncated; use '--show-trace' to show the full trace)
error: in pure evaluation mode, 'fetchTarball' requires a 'sha256' argument
And another call gives me:
building the system configuration...
error: cached failure of attribute 'nixosConfigurations.nixos.config.system.build.toplevel'
Any suggestions how can I fix this? I thought it will be an easy walk in a park.
It seems like this error should be common but I can’t find any meaningful answers in the internet. I’m on stable 23.11 channel.