From 3b78b072bc995984334dd1049ddd924d658def11 Mon Sep 17 00:00:00 2001 From: Giulio De Pasquale Date: Thu, 1 Jul 2021 06:06:23 +0200 Subject: [PATCH] added garbage collection --- common.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/common.nix b/common.nix index c3ed937..e9b4369 100644 --- a/common.nix +++ b/common.nix @@ -5,18 +5,23 @@ console = { keyMap = "us"; - font = "Lat2-Terminus16"; + font = "Lat2-Terminus16"; }; i18n.defaultLocale = "en_US.UTF-8"; nix = { autoOptimiseStore = true; - nixPath = [ + nixPath = [ "nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos" "nixos-config=/etc/nixos/hosts/${variables.hostname}/default.nix" "/nix/var/nix/profiles/per-user/root/channels" ]; + gc = { + automatic = true; + dates = "weekly"; + persistent = true; + }; }; nixpkgs = {