From d0d7d7f9303a459fff6509775d6352396cb33194 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Eug=C3=AAnio?= Date: Thu, 23 Nov 2023 12:37:15 -0300 Subject: [PATCH] gc: only run gc monthly --- system/configuration.nix | 4 ++++ system/nix.nix | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/system/configuration.nix b/system/configuration.nix index ad9c55d..c924718 100644 --- a/system/configuration.nix +++ b/system/configuration.nix @@ -45,7 +45,11 @@ services.flatpak.enable = true; virtualisation.docker.enable = true; virtualisation.docker.autoPrune.enable = true; + virtualisation.docker.autoPrune.dates = "monthly"; virtualisation.docker.autoPrune.flags = [ "--all --volumes" ]; + + programs.extra-container.enable = true; + programs.firejail.enable = true; security.rtkit.enable = true; diff --git a/system/nix.nix b/system/nix.nix index 79326ec..1bb4cb1 100644 --- a/system/nix.nix +++ b/system/nix.nix @@ -7,7 +7,7 @@ nixPath = [ "nixpkgs=${inputs.nixpkgs}" ]; gc = { automatic = true; - dates = "weekly"; + dates = "monthly"; options = "--delete-older-than 7d"; }; optimise.automatic = true;