From 91b2810464d95759c43fa2556a14f2bb56b484b1 Mon Sep 17 00:00:00 2001 From: tux Date: Tue, 23 Sep 2025 13:55:24 +0530 Subject: [PATCH] feat: add optimisations --- modules/base/nix.nix | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/modules/base/nix.nix b/modules/base/nix.nix index 2a9006a..7c096fc 100644 --- a/modules/base/nix.nix +++ b/modules/base/nix.nix @@ -9,13 +9,22 @@ gc = { automatic = true; - options = "--delete-older-than 3d"; + dates = "weekly"; + options = "--delete-older-than 7d"; + }; + + optimise = { + automatic = true; + dates = ["weekly"]; }; channel.enable = false; settings = { - extra-platforms = ["aarch64-linux" "arm-linux"]; + extra-platforms = [ + "aarch64-linux" + "arm-linux" + ]; auto-optimise-store = true; allowed-users = ["${username}"]; trusted-users = ["${username}"];