1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2026-01-17 02:31:06 +00:00

rebuild: remove sudo

This commit is contained in:
RGBCube 2025-09-17 19:55:58 +03:00
parent a544ede06e
commit a4965ea000
Signed by: RGBCube
SSH key fingerprint: SHA256:CzqbPcfwt+GxFYNnFVCqoN5Itn4YFrshg1TrnACpA5M

View file

@ -57,11 +57,11 @@ def main --wrapped [
let nix_flags = [
"--accept-flake-config"
"--extra-experimental-features" "pipe-operators"
] | append ($args_split | get --ignore-errors 1 | default [])
] | append ($args_split | get --optional 1 | default [])
if (uname | get kernel-name) == "Darwin" {
sudo NH_BYPASS_ROOT_CHECK=true NH_NO_CHECKS=true nh darwin switch . ...$nh_flags -- ...$nix_flags
nh darwin switch . ...$nh_flags -- ...$nix_flags
} else {
NH_BYPASS_ROOT_CHECK=true NH_NO_CHECKS=true nh os switch . ...$nh_flags -- ...$nix_flags
nh os switch . ...$nh_flags -- ...$nix_flags
}
}