nixos-rebuild: Use ‘[ ... ]’ instead of ‘test’
Set the NixOS version to something useful when building from Git
Set some missing types