Can I run nix-instantiate --eval --strict on my configuration.nix?

I was about to say that you could look at the source of nixos-rebuild https://github.com/NixOS/nixpkgs/blob/9b20a24d4d59e6563bfb0d3182c463221f16cc5d/nixos/modules/installer/tools/nixos-rebuild.sh#L416 . This confirms @ElvishJerricco’s comment!

2 Likes