From 00ca9461e240d5b17a1f26ab4a5d131d07feea67 Mon Sep 17 00:00:00 2001 From: Superredstone Date: Wed, 4 Sep 2024 09:50:29 +0200 Subject: [PATCH] Added automatic cleanup --- configuration.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/configuration.nix b/configuration.nix index 3821668..38b3362 100644 --- a/configuration.nix +++ b/configuration.nix @@ -8,6 +8,12 @@ boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; + boot.loader.systemd-boot.configurationLimit = 10; + nix.gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 1w"; + }; boot.initrd.luks.devices."luks-332a07bd-65fb-4d91-91ba-fe3f594063b1".device = "/dev/disk/by-uuid/332a07bd-65fb-4d91-91ba-fe3f594063b1"; networking.hostName = "nixos"; # Define your hostname.