Fix nixos-rebuild sandbox option syntax

Use --option sandbox false instead of --no-sandbox flag.
The --no-sandbox flag is for nix build, not nixos-rebuild.
This commit is contained in:
Christoffer Martinsson 2025-10-25 01:44:40 +02:00
parent f5d2ebeaec
commit 71671a8901

View File

@ -302,7 +302,9 @@ impl Agent {
tokio::process::Command::new("sudo")
.arg("/run/current-system/sw/bin/nixos-rebuild")
.arg("switch")
.arg("--no-sandbox")
.arg("--option")
.arg("sandbox")
.arg("false")
.arg("--flake")
.arg(".")
.current_dir(working_dir)