feature(bootloader): add bootloader module with systemd-boot and plymouth

This commit is contained in:
2025-12-28 18:44:21 +01:00
parent 4360fbed68
commit b4c3ddd300

View File

@@ -0,0 +1,27 @@
{ config, lib, pkgs, ... }:
{
# set bootloader to systemd
boot.loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
# enable systemd initrd
boot.initrd.systemd.enable = true;
# plymouth
boot.plymouth = {
enable = true;
theme = "spinner";
};
# kernel options
boot.kernelParams = [ "quiet" "loglevel=2" ];
boot.kernelPackages = pkgs.linuxPackages_latest;
# Add boot-related packages
environment.systemPackages = with pkgs; [
efibootmgr
];
}