support -Q in nixos-rebuild
Merge pull request #1587 from aristidb/master

support -Q in nixos-rebuild