From 2a44a5e06be355c02f3f58ae2ad9e95806f127f1 Mon Sep 17 00:00:00 2001 From: dettlaff Date: Thu, 12 Sep 2024 16:03:56 +0400 Subject: [PATCH] fix: nix collect garbage --- selfprivacy_api/jobs/nix_collect_garbage.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/selfprivacy_api/jobs/nix_collect_garbage.py b/selfprivacy_api/jobs/nix_collect_garbage.py index 6e21448..7818566 100644 --- a/selfprivacy_api/jobs/nix_collect_garbage.py +++ b/selfprivacy_api/jobs/nix_collect_garbage.py @@ -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, )