mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-23 02:40:45 -06:00
Compare commits
No commits in common. "f17c9fde3fff9be4051d7c8bdeddd1d2e3eff8d0" and "3c730fb6f10a79adede40295554fb2badb9829a9" have entirely different histories.
f17c9fde3f
...
3c730fb6f1
1 changed files with 3 additions and 4 deletions
|
@ -16,7 +16,7 @@ proc nixCommand(cmd: string): string =
|
||||||
|
|
||||||
proc nixosConfigAttrs*(): seq[string] =
|
proc nixosConfigAttrs*(): seq[string] =
|
||||||
for host in getHosts():
|
for host in getHosts():
|
||||||
result.add getFlake() & "#nixosConfigurations." & host & ".config.system.build.toplevel"
|
result.add fmt"{getFlake()}#nixosConfigurations.{host}.config.system.build.toplevel"
|
||||||
|
|
||||||
const nixosSubcmds* =
|
const nixosSubcmds* =
|
||||||
"""switch boot test build dry-build dry-activate edit
|
"""switch boot test build dry-build dry-activate edit
|
||||||
|
@ -254,11 +254,10 @@ proc nixBuildWithCache*(name: string, rest:seq[string], service: string, jobs: i
|
||||||
cmd.addArgs rest
|
cmd.addArgs rest
|
||||||
let (path, _, buildCode) = runCmdCapt(cmd)
|
let (path, _, buildCode) = runCmdCapt(cmd)
|
||||||
if buildCode != 0:
|
if buildCode != 0:
|
||||||
# TODO: propagate errors using nix log?
|
|
||||||
error "failed to build: " & drv
|
error "failed to build: " & drv
|
||||||
continue
|
continue
|
||||||
|
outs.add path
|
||||||
outs &= path.strip().splitLines()
|
# TODO: propagate errors using nix log?
|
||||||
|
|
||||||
var cmd = service
|
var cmd = service
|
||||||
cmd.addArg "push"
|
cmd.addArg "push"
|
||||||
|
|
Loading…
Reference in a new issue