From 71671a890160234f62968ff991f485db1fec7b66 Mon Sep 17 00:00:00 2001 From: Christoffer Martinsson Date: Sat, 25 Oct 2025 01:44:40 +0200 Subject: [PATCH] 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. --- agent/src/agent.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/agent/src/agent.rs b/agent/src/agent.rs index b877193..741a455 100644 --- a/agent/src/agent.rs +++ b/agent/src/agent.rs @@ -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)