fix: nix collect garbage

This commit is contained in:
def 2024-09-05 14:54:58 +03:00
parent 8ef63eb90e
commit 81d082ff2a

View file

@ -21,7 +21,12 @@ CLEAR_COMPLETED = "Garbage collection completed."
def delete_old_gens_and_return_dead_report() -> str: def delete_old_gens_and_return_dead_report() -> str:
subprocess.run( 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, check=False,
) )