From 09d232dfc62821d334e3022116299a7717098788 Mon Sep 17 00:00:00 2001 From: Martin Larsson Date: Tue, 15 Jul 2025 16:13:51 +0200 Subject: [PATCH] fix gc scheduling for Linux and Mac (read systemd & launchd) that uses different formats. --- nix/system/common/nix.nix | 5 ----- nix/system/darwin.nix | 5 +++++ nix/system/linux.nix | 2 ++ 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/nix/system/common/nix.nix b/nix/system/common/nix.nix index ee0710c..b181231 100644 --- a/nix/system/common/nix.nix +++ b/nix/system/common/nix.nix @@ -21,11 +21,6 @@ gc = { automatic = true; - interval = { - Weekday = 0; - Hour = 0; - Minute = 0; - }; options = "--delete-older-than 7d"; }; }; diff --git a/nix/system/darwin.nix b/nix/system/darwin.nix index 13b334e..423dfbf 100644 --- a/nix/system/darwin.nix +++ b/nix/system/darwin.nix @@ -9,6 +9,11 @@ let utils = import ../utils.nix; in { + nix.gc.interval = { + Weekday = 0; + Hour = 0; + Minute = 0; + }; environment.systemPackages = with pkgs; [ home-manager diff --git a/nix/system/linux.nix b/nix/system/linux.nix index d5a23f3..a375ae1 100644 --- a/nix/system/linux.nix +++ b/nix/system/linux.nix @@ -4,6 +4,8 @@ ./hardware-configuration.nix ]; + nix.gc.dates = "weekly"; + programs = { xwayland.enable = true; sway = {