Segfault at start of rebuild

I was editing my configs as I normally do and when I went to rebuild I get the following error:

❯ sudo nixos-rebuild switch
building Nix...
/run/current-system/sw/bin/nixos-rebuild: line 175:  7719 Segmentation fault      (core dumped) "$@"
/run/current-system/sw/bin/nixos-rebuild: line 175:  7729 Segmentation fault      (core dumped) "$@"
warning: don't know how to get latest Nix
building the system configuration...

Is there something going on I should know about?

Found the problem. The configuration.nix was loading a liquorix kernel which was causing all kinds of havoc. Switching to latest regular kernel straightened everything out.

1 Like