Commit Graph

93 Commits

Author SHA1 Message Date
Thiago Kenji Okada
57910dc355 nixos-rebuild-ng: do not hide uname -n stderr 2024-12-10 23:19:03 +00:00
Thiago Kenji Okada
7db2ddc8e3 nixos-rebuild-ng: update README.md 2024-12-10 18:38:10 +00:00
Thiago Kenji Okada
1b5fac463b nixos/tests: add nixos-rebuild-target-host-ng 2024-12-10 18:38:09 +00:00
Thiago Kenji Okada
1d3c452d63 nixos-rebuild-ng: set TMPDIR in darwin 2024-12-10 18:38:09 +00:00
Thiago Kenji Okada
063639b2be nixos/tests: add nixos-rebuild-specialisations-ng 2024-12-10 18:38:09 +00:00
Thiago Kenji Okada
81148841b9 nixos/tests: add nixos-rebuild-install-bootloader-ng 2024-12-10 18:38:09 +00:00
Thiago Kenji Okada
c27b1c401a nixos-rebuild-ng: add repl test and fix issues 2024-12-10 18:38:09 +00:00
Thiago Kenji Okada
14ab7a484d nixos-rebuild-ng: make build-time flags globals 2024-12-10 18:38:09 +00:00
Thiago Kenji Okada
d4c1d6c482 nixos-rebuild-ng: accept protocol in Flake.parse() 2024-12-10 18:38:09 +00:00
Thiago Kenji Okada
43e6aa5bd2 nixos-rebuild-ng: enable reexec if system.rebuild.enableNg is enabled 2024-12-10 18:38:08 +00:00
Thiago Kenji Okada
ae6664cc51 nixos/tools: add system.rebuild.enableNg 2024-12-10 18:38:08 +00:00
Thiago Kenji Okada
b928ad0093 nixos-rebuild-ng: only show the error message if the user forget to use --ask-sudo-password flag 2024-12-08 21:15:23 +00:00
Thiago Kenji Okada
69d9c3529d nixos-rebuild-ng: fix repl command 2024-12-08 21:11:11 +00:00
Thiago Kenji Okada
af4fad1f21 nixos-rebuild-ng: remove --raw from nix-instantiate 2024-12-08 02:37:40 +00:00
Thiago Kenji Okada
556a52ac27 nixos-rebuild-ng: fix linter failures 2024-12-07 11:38:03 +00:00
Thiago Kenji Okada
1fe9bfe982 nixos-rebuild-ng: rename manual to nixos-rebuild 2024-12-07 11:31:45 +00:00
Thiago Kenji Okada
bd200697e9 nixos-rebuild-ng: show help when manpage is disabled 2024-12-06 10:56:00 +00:00
Thiago Kenji Okada
da566994ea nixos-rebuild-ng: enable shell files by default 2024-12-05 13:09:26 +00:00
Thiago Kenji Okada
a987599ac1 nixos-rebuild-ng: simplify build options 2024-12-05 13:09:26 +00:00
Thiago Kenji Okada
68a1082234 nixos-rebuild-ng: add proper manpage using scd format 2024-12-05 13:09:26 +00:00
Thiago Kenji Okada
916d65a2d0 nixos-rebuild-ng: add shell completion via shtab 2024-12-05 13:04:01 +00:00
Thiago Kenji Okada
b521c0c6bd nixos-rebuild-ng: add --builders as common_build_flags 2024-12-05 13:04:01 +00:00
Thiago Kenji Okada
98e9372c1c nixos-rebuild: refactor if-else in match 2024-12-03 15:28:11 +00:00
Thiago Kenji Okada
c6e9bd02ca nixos-rebuild-ng: add test to nixos-rebuild build 2024-12-03 12:55:03 +00:00
r-vdp
debea81ba7 nixos-rebuild-ng: don't try to register the profile when doing build or test 2024-12-03 12:19:10 +00:00
Thiago Kenji Okada
d34056b218 nixos-rebuild-ng: disable _NIXOS_REBUILD_REEXEC for now 2024-12-01 20:21:58 +00:00
Thiago Kenji Okada
fb5178c3c5 nixos-rebuild-ng: set capture_output=True to cleanup_ssh 2024-12-01 14:47:58 +00:00
Thiago Kenji Okada
d704aae2cf nixos-rebuild-ng: add logging for captured output values 2024-12-01 14:47:58 +00:00
Thiago Kenji Okada
752c092c47 nixos-rebuild-ng: use shlex.quote instead of join in run_wrapper 2024-12-01 14:47:58 +00:00
Thiago Kenji Okada
c4902dad75 nixos-rebuild-ng: use raw NIX_SSHOPTS in copy_closure 2024-12-01 14:47:58 +00:00
Thiago Kenji Okada
6ea9eae476 nixos-rebuild-ng: avoid usage of implementation details in LogFormatter 2024-11-30 20:19:32 +00:00
Thiago Kenji Okada
4bc3ac552d nixos-rebuild-ng: merge actions 2024-11-30 18:28:36 +00:00
Thiago Kenji Okada
4431a47fcb nixos-rebuild-ng: add --build-host/--target-host to TEST/BUILD/DRY_BUILD/DRY_ACTIVATE 2024-11-30 18:15:45 +00:00
r-vdp
a61aede368 nixos-rebuild-ng: make sure to copy the new closure when doing test or build 2024-11-30 18:02:39 +00:00
Thiago Kenji Okada
cab7882bf5 nixos-rebuild-ng: move check for missing action argument earlier 2024-11-30 17:54:32 +00:00
Thiago Kenji Okada
b118371ebb nixos-rebuild-ng: add SSH_DEFAULT_OPTS to copy-closure 2024-11-30 17:54:32 +00:00
Thiago Kenji Okada
c50144ab79 nixos-rebuild-ng: move reexec earlier 2024-11-30 17:54:32 +00:00
Thiago Kenji Okada
f72572c147 nixos-rebuild-ng: ignore non-directories in upgrade_channels 2024-11-30 17:54:32 +00:00
Thiago Kenji Okada
cfe42fba1c nixos-rebuild-ng: do not fail if re-exec fails 2024-11-30 17:54:32 +00:00
Thiago Kenji Okada
bebec2668b nixos-rebuild-ng: add missing flags from nixos-rebuild-ng 2024-11-30 17:54:32 +00:00
Thiago Kenji Okada
6c3ba91ce4 nixos-rebuild-ng: rename template file to not trigger CI 2024-11-30 17:54:31 +00:00
Thiago Kenji Okada
fed6778da3 nixos-rebuild-ng: move temporary directory to process 2024-11-30 17:54:31 +00:00
Thiago Kenji Okada
776c21be0f nixos-rebuild-ng: fix cleanup_ssh 2024-11-30 17:54:31 +00:00
Thiago Kenji Okada
3fd384af80 nixos-rebuild-ng: implement _NIXOS_REBUILD_REEXEC 2024-11-30 17:54:31 +00:00
Thiago Kenji Okada
3cadcd1653 nixos-rebuild-ng: make build functions more generic 2024-11-30 17:54:31 +00:00
Thiago Kenji Okada
359d341535 nixos-rebuild-ng: add {BuildAttr,Flake}.to_attr() 2024-11-30 17:54:31 +00:00
Thiago Kenji Okada
c859df048f nixos-rebuild-ng: refactor classic Nix to simplify logic 2024-11-30 17:54:31 +00:00
Thiago Kenji Okada
29e9b42022 nixos-rebuild-ng: fix --build-host and --target-host case 2024-11-30 17:54:31 +00:00
Thiago Kenji Okada
2ac1f78a11 nixos-rebuild-ng: validate NIX_SSHOPTS only once 2024-11-30 17:54:30 +00:00
Thiago Kenji Okada
7d58c66881 nixos-rebuild-ng: fix --build-host 2024-11-30 17:54:30 +00:00