From 9c74115b76b6ed05aac910177c0dc927b32c0d27 Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Sat, 8 Oct 2022 14:57:25 -0700 Subject: [PATCH] Set up automatic garbage collection --- README.md | 1 - configuration.nix | 6 ++++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index bf2594b..d051d6f 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,6 @@ - Make rofi power menu work by removing password requirement from shutdown, reboot, etc., which is normally done with `visudo` (see [this Stack Overflow thread](https://askubuntu.com/a/168885) and [Nix `sudo` option](https://search.nixos.org/options?channel=22.05&from=0&size=50&sort=relevance&type=packages&query=sudo). - Package safe poweroff bash script required by rofi power menu -- Limit number of stored rollbacks to remove need for manual garbage collection - Theme lightdm - Theme GRUB - Find out how handling multiple hosts works so both desktop and ThinkPad configurations are buildable from flake diff --git a/configuration.nix b/configuration.nix index 9bcb067..310f202 100644 --- a/configuration.nix +++ b/configuration.nix @@ -14,6 +14,12 @@ in # ]; + # Automatically delete generations older than a week + nix.gc = { + automatic = true; + options = "--delete-generations 8d"; + }; + # Use the GRUB 2 boot loader. boot.loader = { efi = {