From e0be58c63438a921e719e8c0a57ddb3c76d62de1 Mon Sep 17 00:00:00 2001 From: Lumpiasty Date: Mon, 25 Aug 2025 01:30:15 +0200 Subject: [PATCH] prevent esp from filling up in acer --- hosts/acer.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hosts/acer.nix b/hosts/acer.nix index 438b0fe..ceaa52c 100644 --- a/hosts/acer.nix +++ b/hosts/acer.nix @@ -15,6 +15,12 @@ rec { boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; + # Limiting number of generations to prevent ESP from filling + # Using Windows' preinstalled ESP which is only 256MB + boot.loader.systemd-boot.configurationLimit = 5; + boot.initrd.compressor = "zstd"; + boot.initrd.compressorArgs = [ "-19" "-T16" ]; + # Kernel # boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ]; boot.kernelPackages = pkgs.linuxKernel.packages.linux_6_15;