fix: nix collect garbage

This commit is contained in:
dettlaff 2024-09-05 15:50:36 +04:00
parent 8ef63eb90e
commit 42a3c3f196

View file

@ -21,7 +21,13 @@ CLEAR_COMPLETED = "Garbage collection completed."
def delete_old_gens_and_return_dead_report() -> str:
subprocess.run(
["nix-env", "-p", "/nix/var/nix/profiles/system", "--delete-generations old"],
[
"nix-env",
"-p",
"/nix/var/nix/profiles/system",
"--delete-generations",
"old",
],
check=False,
)