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
1 changed files with 2 additions and 4 deletions

View File

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