From b724d14252aa481f4dc378a2088020c34d22b031 Mon Sep 17 00:00:00 2001 From: Petru Paler Date: Wed, 24 Jan 2024 08:31:20 +0000 Subject: [PATCH] Limit the number of configurations kept to avoid filling up the EFI partition. --- common/systemd-boot.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/common/systemd-boot.nix b/common/systemd-boot.nix index 82f8345..7273c42 100644 --- a/common/systemd-boot.nix +++ b/common/systemd-boot.nix @@ -1,5 +1,7 @@ { - # Use the systemd-boot EFI boot loader. - boot.loader.systemd-boot.enable = true; + boot.loader.systemd-boot = { + enable = true; + configurationLimit = 5; + }; boot.loader.efi.canTouchEfiVariables = true; }