From 4eb0dea713bec8aa79dd7dc5540e5daafd301cf9 Mon Sep 17 00:00:00 2001 From: William Carroll Date: Fri, 24 Dec 2021 21:11:24 -0500 Subject: refactor(wpcarro/nixos): Define common.services DRY things up with this mixin. Change-Id: I5791a50b01902734dff91d391e1aa90a21ce4fbb Reviewed-on: https://cl.tvl.fyi/c/depot/+/4600 Reviewed-by: wpcarro Autosubmit: wpcarro Tested-by: BuildkiteCI --- users/wpcarro/common.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'users/wpcarro/common.nix') diff --git a/users/wpcarro/common.nix b/users/wpcarro/common.nix index 79e2eecf5ae3..7093b5f1d43b 100644 --- a/users/wpcarro/common.nix +++ b/users/wpcarro/common.nix @@ -1,6 +1,16 @@ { pkgs, ... }: { + services = { + depot.automatic-gc = { + enable = true; + interval = "1 hour"; + diskThreshold = 16; # GiB + maxFreed = 10; # GiB + preserveGenerations = "14d"; + }; + }; + # Command-line tools I commonly used and want available on most (or all) of my # machines. shell-utils = with pkgs; [ -- cgit 1.4.1