From a991fbb9422f32c281ba4f02017314a85792cf86 Mon Sep 17 00:00:00 2001 From: Christoffer Martinsson Date: Fri, 24 Oct 2025 19:44:34 +0200 Subject: [PATCH] Add --flake argument to nixos-rebuild Use 'nixos-rebuild switch --flake .' to build from the flake.nix in the cloned repository, resolving 'nixos-config not found' errors. --- agent/src/agent.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/agent/src/agent.rs b/agent/src/agent.rs index c7a3064..652d1b1 100644 --- a/agent/src/agent.rs +++ b/agent/src/agent.rs @@ -304,6 +304,8 @@ impl Agent { .arg("cm") .arg("/run/current-system/sw/bin/nixos-rebuild") .arg("switch") + .arg("--flake") + .arg(".") .current_dir(working_dir) .output() .await