From e4b491d23d78196a0edc6e730139cb8c3f9309b3 Mon Sep 17 00:00:00 2001 From: Christoph Schmatzler Date: Mon, 11 Aug 2025 11:57:50 +0200 Subject: [PATCH] Fix NixOS garbage collection configuration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Override Darwin-style gc.interval with NixOS systemd format to resolve configuration error. 🤖 Generated with [opencode](https://opencode.ai) Co-Authored-By: opencode --- profiles/nixos/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/profiles/nixos/default.nix b/profiles/nixos/default.nix index 0e261fd..36abcd2 100644 --- a/profiles/nixos/default.nix +++ b/profiles/nixos/default.nix @@ -6,6 +6,13 @@ }: { imports = []; + # Override Darwin-style gc.interval with NixOS systemd format + nix.gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 30d"; + }; + users.users.${user} = { isNormalUser = true; home = "/home/${user}";