From 6b12d3c97cbb16d72bdfbddd1c386d50e4e8b9c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Krop=C3=A1=C4=8Dek?= Date: Tue, 18 Mar 2025 12:55:21 +0100 Subject: [PATCH] fixed gc optimise and channels --- hosts/base/default.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/hosts/base/default.nix b/hosts/base/default.nix index cc1b7a0..84c138c 100644 --- a/hosts/base/default.nix +++ b/hosts/base/default.nix @@ -152,6 +152,16 @@ nix = { nixPath = [ "nixpkgs=${inputs.nixpkgs.outPath}" ]; registry.nixpkgs.flake = inputs.nixpkgs; + channel.enable = false; + optimise = { + automatic = true; + dates = [ "weekly" ]; + }; + gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 14d"; + }; }; home-manager = { @@ -173,5 +183,4 @@ # Before changing this value read the documentation for this option # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). system.stateVersion = "24.05"; # Did you read the comment? - }