From b0fa30739847a2dafe40aa9ee609834042d6a870 Mon Sep 17 00:00:00 2001 From: MediocreDev Date: Fri, 15 Mar 2024 17:18:54 +0000 Subject: [PATCH] add auto gc and optimization of /nix/store --- hosts/default/configuration.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/hosts/default/configuration.nix b/hosts/default/configuration.nix index cacf661..970b9f2 100644 --- a/hosts/default/configuration.nix +++ b/hosts/default/configuration.nix @@ -78,6 +78,16 @@ # ]; # }; nix.settings.trusted-users = [ "root" "@wheel" ]; + nix.gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 30d"; + }; + nix.optimise = { + automatic = true; + dates = [ "00:00" ]; + }; + users.users.liamm = { isNormalUser = true; description = "liamm";