os/update: make building on remote optional
1 file changed, 6 insertions(+), 2 deletions(-)
changed files
M scripts/os/update/linde → scripts/os/update/linde
@@ -6,13 +6,17 @@ echo "not in nixfiles directory!" >&2 return 1 end -argparse -- $argv +argparse r/remote -- $argv set --local target (status basename) set --local action (if test -n "$argv[1]"; echo $argv[1]; else echo "switch"; end) +if set --query _flag_remote + set --function build_host --build-host root@{$target} +end + nixos-rebuild $action \ --flake .?submodules=1#{$target} \ + $build_host \ --target-host root@{$target} \ - --build-host root@{$target} \ --no-reexec