68 lines
1.6 KiB
Nix
68 lines
1.6 KiB
Nix
{ pkgs, config, lib, flakeRoot, ... }:
|
|
|
|
let
|
|
grubThemeDir = "/boot/grub/themes/catppuccin-mocha";
|
|
in
|
|
{
|
|
############################
|
|
# Bootloader (GRUB)
|
|
############################
|
|
boot.loader = {
|
|
grub = {
|
|
enable = true;
|
|
efiSupport = true;
|
|
devices = [ "nodev" ]; # pas aan naar je echte EFI-device indien nodig
|
|
useOSProber = true;
|
|
timeout = 5;
|
|
|
|
# Declaratieve theme
|
|
theme = "${grubThemeDir}/theme.txt";
|
|
};
|
|
};
|
|
|
|
############################
|
|
# Kernel / boot settings
|
|
############################
|
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
|
|
|
boot.kernelParams = [
|
|
"quiet"
|
|
"splash" # REQUIRED voor Plymouth
|
|
"udev.log_level=3"
|
|
"rd.systemd.show_status=false"
|
|
];
|
|
|
|
boot.consoleLogLevel = 0;
|
|
boot.supportedFilesystems = [ "ntfs" ];
|
|
|
|
############################
|
|
# Plymouth
|
|
############################
|
|
boot.plymouth = {
|
|
enable = true;
|
|
theme = "rings";
|
|
|
|
themePackages = [
|
|
(pkgs.adi1090x-plymouth-themes.override {
|
|
selected_themes = [ "rings" ];
|
|
})
|
|
];
|
|
};
|
|
|
|
boot.initrd.systemd.enable = true;
|
|
|
|
############################
|
|
# GRUB theme declaratief via environment.etc
|
|
############################
|
|
environment.etc."grub/themes/catppuccin-mocha/theme.txt".source =
|
|
"${flakeRoot}/assets/system/theming/boot/theme.txt";
|
|
|
|
environment.etc."grub/themes/catppuccin-mocha/background.png".source =
|
|
"${flakeRoot}/assets/system/theming/boot/background.png";
|
|
|
|
############################
|
|
# System state
|
|
############################
|
|
system.stateVersion = "26.05";
|
|
}
|