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.
This commit is contained in:
Christoffer Martinsson 2025-10-24 19:44:34 +02:00
parent 7b7e323fd8
commit a991fbb942

View File

@ -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