From 35684609f3be229e4751bc781adc46efc91d2d21 Mon Sep 17 00:00:00 2001 From: harry Date: Fri, 16 Aug 2024 15:33:48 +0200 Subject: [PATCH] (feat): disk size optimisation --- configuration.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/configuration.nix b/configuration.nix index 44cb5c7..9c9ee1c 100644 --- a/configuration.nix +++ b/configuration.nix @@ -99,6 +99,15 @@ 8080 ]; + # reducing disk usage + boot.loader.systemd-boot.configurationLimit = 10; + nix.gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 1w"; + }; + nix.settings.auto-optimise-store = true; + # Copy the NixOS configuration file and link it from the resulting system # (/run/current-system/configuration.nix). This is useful in case you # accidentally delete configuration.nix.