nh
nh copied to clipboard
-Q flag is not being recognised
I have confirmed that this is a bug related to nh
- [x] This is a bug, and not an user error or a support request. I understand that my issue will be closed if it is not a bug in NH.
- [x] I have checked the issues tab and confirmed that my issue has not yet been reported. I understand that my issue will be closed if it is a duplicate.
Description
When I do nh os switch -Q, it should suppress the build outputs, but it said the flag is not being recognised:
Full output:
> Building NixOS configuration
error: unrecognised flag '--no-build-output'
Try 'nix --help' for more information.
Finished at 10:32:56 after 0s
Error:
0: Target profile path does not exist: /tmp/nh-osZA9Egs/result
Location:
src/nixos.rs:224
Installation Method
Stable Release (nixpkgs, pkgs.nh from nixos-unstable or nixos-yy-mm)
Installation Method (Other)
No response
NH Version
v4.2.0
System Information
- system:
"x86_64-linux" - host os:
Linux 6.12.51, NixOS, 25.11 (Xantusia), 25.11.20251009.0b4defa - multi-user?:
yes - sandbox:
yes - version:
nix-env (Nix) 2.31.2 - channels(root):
"nixos" - nixpkgs:
/nix/store/3mpwmcgcjld1jxr5r0allm3c0qkxvcfx-source
I can reproduce this on master. This flag does not even seem to exist for nix. I am not quite sure if the flag we want is actually --quiet, or something entirely else.
Thank you for reproducing it!
I suppose the --no-build-output flag and --quite suppresses the following build logs and only display the dependency graph and the timer:
But seems like --quite doesn't do that too, should that the be the case?