From f0028ba7a7be2726c06c16c073d88e4a622b43ac Mon Sep 17 00:00:00 2001 From: Vinzenz Schroeter Date: Sun, 17 Sep 2023 15:20:18 +0200 Subject: [PATCH] auto update and gc settings --- modules/_common/nixpkgs.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/_common/nixpkgs.nix b/modules/_common/nixpkgs.nix index be3e744..b8299d3 100644 --- a/modules/_common/nixpkgs.nix +++ b/modules/_common/nixpkgs.nix @@ -5,12 +5,16 @@ system = { stateVersion = "22.11"; # enable auto updates - autoUpgrade.enable = true; + autoUpgrade = { + enable = true; + dates = "weekly"; + }; }; nix.gc = { automatic = true; - dates = "00:30"; + dates = "monthly"; + options = "--delete-older-than 30d"; }; }; }