strip output

This commit is contained in:
Daylin Morgan 2024-10-30 21:26:41 -05:00
parent 3c730fb6f1
commit 42933ae97c
Signed by: daylin
GPG key ID: 950D13E9719334AD

View file

@ -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 fmt"{getFlake()}#nixosConfigurations.{host}.config.system.build.toplevel" result.add 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
@ -256,7 +256,7 @@ proc nixBuildWithCache*(name: string, rest:seq[string], service: string, jobs: i
if buildCode != 0: if buildCode != 0:
error "failed to build: " & drv error "failed to build: " & drv
continue continue
outs.add path outs.add path.strip()
# TODO: propagate errors using nix log? # TODO: propagate errors using nix log?
var cmd = service var cmd = service