Here’s my configuration.
Every time I add a new file to my configuration, I get this error when rebuilding the configuration under a configured system:
command: cd ~/.nix && sudo nixos-rebuild switch --flake '.#sakura'
result:
building the system configuration...
error:
… while calling the 'head' builtin
at /nix/store/3j9garb3574mxikwbi6zn594j8mjd19s-source/lib/attrsets.nix:784:11:
783| || pred here (elemAt values 1) (head values) then
784| head values
| ^
785| else
… while evaluating the attribute 'value'
at /nix/store/3j9garb3574mxikwbi6zn594j8mjd19s-source/lib/modules.nix:768:9:
767| in warnDeprecation opt //
768| { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value;
| ^
769| inherit (res.defsFinal') highestPrio;
(stack trace truncated; use '--show-trace' to show the full trace)
error: getting status of '/nix/store/icnm9r8vjdm0lir9c5ljib7zrlm338gp-source/modules/programs/lf.nix': No such file or directory
This time is I added configuration of lf
.
Also, I can build it under a not configured system.