From 81d082ff2a30baec9bce7a44bb91eb8a615e7828 Mon Sep 17 00:00:00 2001 From: def Date: Thu, 5 Sep 2024 14:54:58 +0300 Subject: [PATCH] fix: nix collect garbage --- selfprivacy_api/jobs/nix_collect_garbage.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/selfprivacy_api/jobs/nix_collect_garbage.py b/selfprivacy_api/jobs/nix_collect_garbage.py index 6e21448..032dbe6 100644 --- a/selfprivacy_api/jobs/nix_collect_garbage.py +++ b/selfprivacy_api/jobs/nix_collect_garbage.py @@ -21,7 +21,12 @@ 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, )