Skip to content

nixos-rebuild --specialisation nonexistent (wrong name( does not print any error message #412749

@nh2

Description

@nh2

When running nixos-rebuild --specialisation on a specialisation not declared in e.g. configuration.nix, such as

nixos-rebuild --specialisation my-nonexistent-specialisation

then you only get

building the system configuration...
Command exited with non-zero status 1

but no sensible error message.

It should best print e.g. --specialisation my-nonexistent-specialisation: This specialisation does not exist.

Tested on NixOS 25.05.

Metadata

Metadata

Assignees

No one assigned

    Labels

    2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md6.topic: nixosIssues or PRs affecting NixOS modules, or package usability issues specific to NixOS
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions