remote builds

This commit is contained in:
ari committed 2026-03-22 22:24:44 -04:00
1 parent 95a90109db
commit fd5c5e9a77
5 files changed
+12 -8

No files matched your search

+2 -2
View File
@@ -31,7 +31,7 @@ def "main build" [] {
# Switch configuration
def "main switch" [] {
nh os switch | print
nh os switch --ask | print
}
# test configuration
@@ -73,7 +73,7 @@ def "main remote" [cmd:string, target:string = ""] {
return $valid_cmds
}
$"($cmd) on ($target_host) with ($profile)" | print
mut runcmd = $"nixos-rebuild ($cmd) --target-host ($target_host) --sudo --flake .#($profile)"
mut runcmd = $"nh os ($cmd) --target-host ($target_host) --ask .#($profile)"
$runcmd | print
bash -c $runcmd
}