From a29572f8764410e12336d5d5a7dd380022204392 Mon Sep 17 00:00:00 2001 From: alex Date: Sat, 24 Aug 2024 11:33:51 -0400 Subject: [PATCH] nixos76: set up automatic gc --- config/hosts/nixos76/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/config/hosts/nixos76/default.nix b/config/hosts/nixos76/default.nix index 77f0586..2cfbb92 100644 --- a/config/hosts/nixos76/default.nix +++ b/config/hosts/nixos76/default.nix @@ -9,6 +9,13 @@ ../../modules/system76-pc.nix ]; + nix.settings.auto-optimise-store = true; + nix.gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 5d"; + }; + networking.hostName = "nixos76"; # Define your hostname. boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" "rtsx_pci_sdmmc" ];