From b9041df52e6fb98517f2c701a64d387c201ad39d Mon Sep 17 00:00:00 2001 From: Craige McWhirter Date: Tue, 2 Jul 2019 13:47:20 +1000 Subject: [PATCH] Added garbage collection --- Deployments/host_common.nix | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/Deployments/host_common.nix b/Deployments/host_common.nix index cb49875..13cb5f5 100644 --- a/Deployments/host_common.nix +++ b/Deployments/host_common.nix @@ -1,4 +1,4 @@ -# Configuration common to all Raspberry Pi 3 Model B devices in the MIO rack +# Configuration common to all my servers { config, pkgs, lib, ... }: @@ -16,10 +16,21 @@ security.sudo.enable = true; security.sudo.wheelNeedsPassword = false; + # Enable Nix garbage collection: + nix.gc.automatic = true; + nix.gc.dates = "weekly"; + nix.gc.options = "--delete-older-than 90d"; + # Program defauls for Linode VMs - programs.zsh.enable = true; - programs.zsh.autosuggestions.enable = true; - programs.zsh.ohMyZsh.enable = true; + programs.zsh = { + enable = true; + autosuggestions = { + enable = true; + }; + ohMyZsh = } + enable = true; + }; + }; # List services that you want to enable: services.openssh.enable = true; # Enable the OpenSSH daemon.