shell.nix: wrap nixos-rebuild with nix-output-monitor #106

Closed
pederbs wants to merge 2 commits from nom into main

2 Commits

Author SHA1 Message Date
31f2f445f3 justfile: fix nom use condition.
Some checks failed
Eval nix flake / evals (push) Has been cancelled
Eval nix flake / evals (pull_request) Has been cancelled
turns out just will plumb the stdout of its running processes, so we detect ttys on stderr instead
2025-05-31 20:43:16 +02:00
bce1f0e912 shell.nix: wrap nixos-rebuild with nix-output-monitor
Some checks failed
Eval nix flake / evals (push) Has been cancelled
Eval nix flake / evals (pull_request) Has been cancelled
\#nix-output-monitor-and-chill

nom is only used if the output is a tty, and I provide a escape hatch in the form of NIX_NO_NOM=1.
This solution sidesteps issues like `sudo nixos-rebuild ... |& nom` capturing the sudo password prompt.
2025-05-31 19:45:05 +02:00