use pixos-rebuild more

This commit is contained in:
Daylin Morgan 2024-02-20 13:12:01 -06:00
parent 346ad6aecf
commit e195e1df05
Signed by: daylin
GPG key ID: C1E52E7DD81DF79F

View file

@ -76,7 +76,8 @@ proc cache(c: OizysContext) =
proc nixosRebuild(c: OizysContext, subcmd: string) =
execQuit "sudo nixos-rebuild " & subcmd & " " & " --flake " & c.flake
let cmd = if c.pinix: "pixos-rebuild" else: "nixos-rebuild"
execQuit "sudo " & cmd & " " & subcmd & " " & " --flake " & c.flake
proc boot(c: OizysContext) =
## nixos rebuild boot