Merge pull request #170 from naturallaw777/copilot/fix-nixos-rebuild-usage-error
[WIP] Fix nixos-rebuild command by replacing it with nix build
This commit is contained in:
@@ -3093,8 +3093,10 @@ async def api_security_verify_integrity():
|
|||||||
try:
|
try:
|
||||||
result_link = os.path.join(tmpdir, "result")
|
result_link = os.path.join(tmpdir, "result")
|
||||||
result = subprocess.run(
|
result = subprocess.run(
|
||||||
["/run/current-system/sw/bin/nixos-rebuild", "build", "--flake", "/etc/nixos",
|
["/run/current-system/sw/bin/nix", "build",
|
||||||
"--no-build-output", "-o", result_link],
|
"/etc/nixos#nixosConfigurations.nixos.config.system.build.toplevel",
|
||||||
|
"--out-link", result_link,
|
||||||
|
"--no-build-output"],
|
||||||
capture_output=True, text=True, timeout=600,
|
capture_output=True, text=True, timeout=600,
|
||||||
cwd=tmpdir,
|
cwd=tmpdir,
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user