From 42a3c3f196e12d9daf0a0f6d5344b35943dcdf39 Mon Sep 17 00:00:00 2001 From: dettlaff Date: Thu, 5 Sep 2024 15:50:36 +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, )