From 909398bf3ce0f311494f936699a65b1d455f198b Mon Sep 17 00:00:00 2001 From: Martin Larsson Date: Tue, 15 Jul 2025 16:06:05 +0200 Subject: [PATCH] Update backwards compatible settings that work in NixOS but are deprecated in Nix Darwin to the new standards --- nix/system/common/nix.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/nix/system/common/nix.nix b/nix/system/common/nix.nix index 605ade6..ee0710c 100644 --- a/nix/system/common/nix.nix +++ b/nix/system/common/nix.nix @@ -7,20 +7,25 @@ nix = { settings = { experimental-features = "nix-command flakes"; - auto-optimise-store = true; max-jobs = "auto"; cores = 0; builders-use-substitutes = true; }; + optimise.automatic = true; + extraOptions = '' keep-going = true ''; gc = { automatic = true; - dates = "weekly"; + interval = { + Weekday = 0; + Hour = 0; + Minute = 0; + }; options = "--delete-older-than 7d"; }; };