mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-22 14:20:44 -06:00
actually pass "flake" to nixos-rebuild
This commit is contained in:
parent
f100dd6853
commit
8ab0c10ae1
1 changed files with 12 additions and 6 deletions
|
@ -71,9 +71,15 @@ func NixDryRun(path string) {
|
|||
}
|
||||
|
||||
func NixosRebuild(subcmd string, flake string, rest ...string) {
|
||||
args := []string{subcmd, "--flake"}
|
||||
args := []string{
|
||||
"nixos-rebuild",
|
||||
subcmd,
|
||||
"--flake",
|
||||
flake,
|
||||
}
|
||||
fmt.Println(args)
|
||||
args = append(args, rest...)
|
||||
cmd := exec.Command("nixos-rebuild", args...)
|
||||
cmd := exec.Command("sudo", args...)
|
||||
runCommand(cmd)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue