62 lines
1.3 KiB
Nix
62 lines
1.3 KiB
Nix
{ pkgs, config, lib, flakeRoot, ... }:
|
|
|
|
let
|
|
grubTheme = "${flakeRoot}/assets/system/theming/boot";
|
|
in
|
|
{
|
|
############################
|
|
# Bootloader (GRUB)
|
|
############################
|
|
boot.loader = {
|
|
timeout = 5;
|
|
|
|
grub = {
|
|
enable = true;
|
|
efiSupport = true;
|
|
devices = [ "nodev" ];
|
|
useOSProber = true;
|
|
|
|
# Proper declarative theme
|
|
theme = "${grubTheme}/theme.txt";
|
|
};
|
|
};
|
|
|
|
############################
|
|
# Kernel / boot settings
|
|
############################
|
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
|
|
|
boot.kernelParams = [
|
|
"quiet"
|
|
"splash" # REQUIRED for plymouth
|
|
"udev.log_level=3"
|
|
"rd.systemd.show_status=false"
|
|
];
|
|
|
|
boot.consoleLogLevel = 0;
|
|
|
|
boot.supportedFilesystems = [ "ntfs" ];
|
|
|
|
############################
|
|
# Plymouth (FIXED)
|
|
############################
|
|
boot.plymouth = {
|
|
enable = true;
|
|
theme = "rings";
|
|
|
|
themePackages = [
|
|
(pkgs.adi1090x-plymouth-themes.override {
|
|
selected_themes = [ "rings" ];
|
|
})
|
|
];
|
|
};
|
|
|
|
# CRITICAL: ensures plymouth starts early in initrd
|
|
boot.initrd.systemd.enable = true;
|
|
|
|
############################
|
|
# Required (avoid warnings)
|
|
############################
|
|
system.stateVersion = "26.05";
|
|
}
|