Nixpkgs version
Describe the bug
nixos-rebuild build-vm & nixos-rebuild build-vm-with-bootloader don't respect the --specialisation flag
Steps to reproduce
nixos-rebuild build-vm --flake . --specialisation niri -v
outputs:
debug: nixos_rebuild.process: calling run with args=['nix', '--extra-experimental-features', 'nix-command flakes', 'build', '--print-out-paths', '/etc/nixos/dotfiles/internal#nixosConfigurations."framework".config.system.build.vm', '-v'], kwargs={'stdout': -1}, env=None, append_local_env=None
Expected behaviour
It should build the specialized configuration:
debug: nixos_rebuild.process: calling run with args=['nix', '--extra-experimental-features', 'nix-command flakes', 'build', '--print-out-paths', '/etc/nixos/dotfiles/internal#nixosConfigurations."framework".config.specialisation.niri.configuration.system.build.vm', '-v'], kwargs={'stdout': -1}, env=None, append_local_env=None
So config.specialisation.NAME.configuration.system.build.vm instead of config.system.build.vm
Screenshots
No response
Relevant log output
Additional context
No response
System metadata
Notify maintainers
@thiagokokada
Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)
I assert that this issue is relevant for Nixpkgs
Is this issue important to you?
Add a 👍 reaction to issues you find important.
Nixpkgs version
Describe the bug
nixos-rebuild build-vm&nixos-rebuild build-vm-with-bootloaderdon't respect the--specialisationflagSteps to reproduce
nixos-rebuild build-vm --flake . --specialisation niri -voutputs:
Expected behaviour
It should build the specialized configuration:
So
config.specialisation.NAME.configuration.system.build.vminstead ofconfig.system.build.vmScreenshots
No response
Relevant log output
Additional context
No response
System metadata
Notify maintainers
@thiagokokada
Note for maintainers: Please tag this issue in your pull request description. (i.e.
Resolves #ISSUE.)I assert that this issue is relevant for Nixpkgs
Is this issue important to you?
Add a 👍 reaction to issues you find important.