fix: nix collect garbage

This commit is contained in:
dettlaff 2024-09-12 16:03:56 +04:00
parent 8ef63eb90e
commit 2a44a5e06b

View file

@ -21,7 +21,13 @@ 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,
) )