nixos76: set up automatic gc

This commit is contained in:
alex 2024-08-24 11:33:51 -04:00
parent 2da09001d7
commit a29572f876
1 changed files with 7 additions and 0 deletions

View File

@ -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" ];