nixos-config/system/boot.nix
Felix Schröter 29eceee7eb
feat(system): set systemd-boot configuration limit to 10
In addition to Nix garbage collection based on age, this will keep the
boot partition from running full with too many generations.
2025-09-15 20:17:50 +02:00

17 lines
541 B
Nix

{ lib, pkgs, ... }:
{
boot.supportedFilesystems = lib.mkDefault [ "btrfs" ];
boot.kernelPackages = lib.mkOverride 800 pkgs.linuxPackages_latest;
boot.loader.systemd-boot.enable = true;
boot.loader.systemd-boot.configurationLimit = 10;
boot.loader.efi.canTouchEfiVariables = true;
boot.initrd.systemd.enable = true;
boot.plymouth.enable = true;
# prevents `systemd-vconsole-setup` failing during systemd initrd
console.earlySetup = true;
systemd.services.systemd-vconsole-setup.unitConfig.After = "local-fs.target";
}