mirror of
https://github.com/RGBCube/ncc
synced 2025-07-30 19:47:47 +00:00
Use Nix Output Monitor
This commit is contained in:
parent
e6b9aed06e
commit
9003544750
1 changed files with 2 additions and 2 deletions
|
@ -9,7 +9,7 @@ def main [
|
|||
let valid_machines = ls machines | where type == dir | get name | each { $in | str replace "machines/" "" }
|
||||
|
||||
if ($machine_ | is-empty) {
|
||||
$machine_ = (input $"Select machine to build [($valid_machines | str join ', ')]: ")
|
||||
$machine_ = (input $"machine to build [($valid_machines | str join ', ')]: ")
|
||||
|
||||
if ($machine_ | is-empty) and ($valid_machines | length) == 1 {
|
||||
$machine_ = ($valid_machines | get 0)
|
||||
|
@ -25,7 +25,7 @@ def main [
|
|||
}
|
||||
|
||||
sudo --validate
|
||||
nix-shell --packages git --command $"sudo nixos-rebuild switch --impure --flake .#($machine) ($arguments | str join ' ')"
|
||||
nix-shell --packages git nix-output-monitor --command $"sudo nixos-rebuild switch --log-format internal-json --impure --flake .#($machine) ($arguments | str join ' ') |& nom --json"
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue