This commit is contained in:
Daylin Morgan 2024-05-05 16:13:24 -05:00
parent e68109a40f
commit 41cfd7b141
Signed by: daylin
GPG key ID: 950D13E9719334AD

View file

@ -74,10 +74,9 @@ func NixosRebuild(subcmd string, flake string, rest ...string) {
args := []string{ args := []string{
"nixos-rebuild", "nixos-rebuild",
subcmd, subcmd,
"--flake", "--flake",
flake, flake,
} }
fmt.Println(args)
args = append(args, rest...) args = append(args, rest...)
cmd := exec.Command("sudo", args...) cmd := exec.Command("sudo", args...)
runCommand(cmd) runCommand(cmd)
@ -94,7 +93,6 @@ func runCommand(cmd *exec.Cmd) {
func NixBuild(path string, rest ...string) { func NixBuild(path string, rest ...string) {
args := []string{"build", path} args := []string{"build", path}
args = append(args, rest...) args = append(args, rest...)
fmt.Println(args)
cmd := exec.Command("nix", args...) cmd := exec.Command("nix", args...)
runCommand(cmd) runCommand(cmd)
} }