Hypotheses:
-
nixos-rebuild
is wrong and shouldn't exist.Just immediately do the two things required for switching to a configuration.
-
/etc/configuration.nix
is arbitrary and wrong and shouldn't exist either.Keep your configurations wherever you want.
It's all right there in default.nix
.