From b6fad0b33237306d72d97ab0675af8be8047cd77 Mon Sep 17 00:00:00 2001 From: xqtc161 Date: Sat, 10 Feb 2024 23:46:24 +0100 Subject: [PATCH] Adding GC --- hosts/gc.nix | 8 ++++++++ hosts/lilith/default.nix | 1 + 2 files changed, 9 insertions(+) create mode 100644 hosts/gc.nix diff --git a/hosts/gc.nix b/hosts/gc.nix new file mode 100644 index 0000000..2c5db81 --- /dev/null +++ b/hosts/gc.nix @@ -0,0 +1,8 @@ +{ config, ... }: +{ + nix.gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 10d"; + }; +} diff --git a/hosts/lilith/default.nix b/hosts/lilith/default.nix index d62b73f..bd26c31 100644 --- a/hosts/lilith/default.nix +++ b/hosts/lilith/default.nix @@ -5,6 +5,7 @@ [ # Include the results of the hardware scan. ./hardware-configuration.nix ../antivirus.nix + ../gc.nix #nixos-hardware.nixosModules.lenovo.thinkpad.t480 #(builtins.getFlake (builtins.fetchGit "github:NixOs/nixos-hardware")).nixosModules.lenovo-thinkpad-t480 ];