Nixos-rebuild switch seg fault

when i added gnumake into my configuration.nix and run rebuild switch i get a seg fault error. I still get the error even after removing gnumake…

nixos-rebuild switch --flake /etc/nixos#palantir
/run/current-system/sw/bin/nixos-rebuild: line 174: 952685 Segmentation fault      (core dumped) "$@"

journalctl shows the following

nix[952685]: segfault at 8 ip 000077c392fdf544 sp 00007fff32aef7d0 error 4 in libnixutil.so[77c392fc2000+8c000] likely on CPU 3 (core 4, socket 0)
1 Like