Commit Graph

29 Commits

Author SHA1 Message Date
Thiago Kenji Okada
5cbc6f5623 nixos-rebuild-ng: use argparse groups to group nix flags 2024-11-27 14:21:15 +00:00
Thiago Kenji Okada
287518360a nixos-rebuild-ng: validate NIX_SSHOPTS 2024-11-27 11:01:02 +00:00
Thiago Kenji Okada
3ef018f5e3 nixos-rebuild-ng: set process.run_wrapper check=True by default 2024-11-26 22:08:27 +00:00
Thiago Kenji Okada
3a080abf13 nixos-rebuild-ng: import nix module instead of each individual function 2024-11-26 20:12:21 +00:00
Thiago Kenji Okada
088785adf8 nixos-rebuild-ng: split parser_args in get_parser 2024-11-26 17:14:24 +00:00
Thiago Kenji Okada
0479ef4106 nixos-rebuild-ng: remove explicit check for git and instead check exception 2024-11-26 16:56:49 +00:00
Thiago Kenji Okada
2e4d755351 nixos-rebuild-ng: do not use TTY for --target-host
Instead this commit introduces the `--ask-sudo-password` that stores the
password in memory and injects it via `stdin` if the user wants.
2024-11-26 16:21:13 +00:00
Thiago Kenji Okada
10f2b080c3 nixos-rebuild-ng: move test to the correct file 2024-11-26 16:21:13 +00:00
Thiago Kenji Okada
4adad7f664 nixos-rebuild-ng: implement --target-host for --rollback 2024-11-26 16:21:13 +00:00
Thiago Kenji Okada
e37e7e348d nixos-rebuild-ng: cleanup SSH ControlMaster at exit 2024-11-26 16:21:13 +00:00
Thiago Kenji Okada
f443299c58 nixos-rebuild-ng: remove support for env in process.run_wrapper 2024-11-26 16:21:12 +00:00
Thiago Kenji Okada
866e1786e3 nixos-rebuild-ng: move models.Ssh to process.Remote 2024-11-26 16:21:12 +00:00
Thiago Kenji Okada
37d6a2688f nixos-rebuild-ng: get remote hostname 2024-11-26 16:21:12 +00:00
Thiago Kenji Okada
56203bca4e nixos-rebuild-ng: add allow_tty parameter to process.run_wrapper 2024-11-26 16:21:12 +00:00
Thiago Kenji Okada
8bd70ef699 nixos-rebuild-ng: error when --rollback is called with incompatible action 2024-11-26 16:21:12 +00:00
Thiago Kenji Okada
a2cbe67701 nixos-rebuild-ng: implement --target-host 2024-11-26 16:21:12 +00:00
Thiago Kenji Okada
fd1cd69315 nixos-rebuild-ng: add pythonpath to pytest config 2024-11-26 16:21:12 +00:00
Thiago Kenji Okada
3d7fbe88ab nixos-rebuild-ng: parse NIX_SSHOPTS instead of SSH_OPTS env var 2024-11-26 16:21:12 +00:00
Thiago Kenji Okada
a6b9aaba1b nixos-rebuild-ng: add TTY allocation in SSH 2024-11-26 16:21:11 +00:00
Thiago Kenji Okada
31e9e8c0aa nixos-rebuild-ng: run -> run_wrapper, handle encode errors and add extra_env 2024-11-26 16:21:11 +00:00
Thiago Kenji Okada
e47b17e239 nixos-rebuild-ng: create instance for dataclass from Self 2024-11-26 16:21:11 +00:00
Thiago Kenji Okada
6c6d08dc4f nixos-rebuild-ng: add --sudo/--use-remote-sudo flags 2024-11-26 16:21:11 +00:00
Thiago Kenji Okada
3b41ec0691 nixos-rebuild-ng: explicitly parse Nix flags 2024-11-26 16:21:11 +00:00
Thiago Kenji Okada
c66e65cb2e nixos-rebuild-ng: use python3Packages 2024-11-21 10:47:42 +00:00
Thiago Kenji Okada
a8b2af2a12 nixos-rebuild-ng: add devShell 2024-11-21 10:47:42 +00:00
Thiago Kenji Okada
4def107627 nixos-rebuild-ng: generate .version-suffix for classic Nix 2024-11-21 10:47:42 +00:00
Thiago Kenji Okada
d55f8c84a5 nixos-rebuild-ng: reduce build closure by moving checks to passthru.tests 2024-11-21 10:47:42 +00:00
Thiago Kenji Okada
0ceb3a735b nixos-rebuild-ng: lazy import tabulate 2024-11-21 10:47:42 +00:00
Thiago Kenji Okada
9e6ece3ee1 nixos-rebuild-ng: init 2024-11-15 18:27:16 +00:00