Cleanup
This commit is contained in:
parent
1a32129e41
commit
8f7b5ac25a
|
@ -6,10 +6,7 @@ def main [
|
||||||
--push-to-machine(-p) # Whether or not to push the result to the given machine
|
--push-to-machine(-p) # Whether or not to push the result to the given machine
|
||||||
--print-build-logs(-L) # Print full build logs on standard error.
|
--print-build-logs(-L) # Print full build logs on standard error.
|
||||||
command # 'nixos-rebuild' command to execute
|
command # 'nixos-rebuild' command to execute
|
||||||
#...misc # misc parameters
|
|
||||||
] {
|
] {
|
||||||
let flake = $".#($machine)"
|
|
||||||
|
|
||||||
let buildOnMachine = if $build_on_machine {
|
let buildOnMachine = if $build_on_machine {
|
||||||
$"--build-host ($machine)"
|
$"--build-host ($machine)"
|
||||||
}
|
}
|
||||||
|
@ -25,10 +22,10 @@ def main [
|
||||||
let command = [
|
let command = [
|
||||||
"nixos-rebuild"
|
"nixos-rebuild"
|
||||||
$command
|
$command
|
||||||
|
$printBuildLogs
|
||||||
$buildOnMachine
|
$buildOnMachine
|
||||||
$"--flake .#($machine)"
|
$"--flake .#($machine)"
|
||||||
$pushToMachine
|
$pushToMachine
|
||||||
$printBuildLogs
|
|
||||||
] | filter {|| $in | is-not-empty} | str join " "
|
] | filter {|| $in | is-not-empty} | str join " "
|
||||||
^bash -c $command
|
^bash -c $command
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue