From 90035447504646cd13fcbc633ca7e8894f43fbda Mon Sep 17 00:00:00 2001 From: RGBCube Date: Tue, 14 Nov 2023 11:42:56 +0300 Subject: [PATCH] Use Nix Output Monitor --- rebuild.nu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rebuild.nu b/rebuild.nu index c605c22..ede3d78 100755 --- a/rebuild.nu +++ b/rebuild.nu @@ -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" }