feat(nix): use nix-monitored

Automatically pipes all nix output through `nix-output-monitor`
Deprecates the manual pipe in the `rebuild` script
This commit is contained in:
reo101 2023-12-25 18:49:26 +02:00
parent 8feb5245ea
commit ac66ed6530
Signed by: reo101
GPG key ID: 675AA7EF13964ACB
4 changed files with 32 additions and 3 deletions

View file

@ -33,7 +33,7 @@ let
if cfg.hostname != null
then "${cfg.flakePath}#${cfg.hostname}"
else "${cfg.flakePath}"
} ''$''\{1:-switch''\} "''$''\{@:2''\}" |& nix run nixpkgs#nix-output-monitor
} ''$''\{1:-switch''\} "''$''\{@:2''\}" # |& nix run nixpkgs#nix-output-monitor
'';
in
"${rebuild_script}";