boot/module.nix: cleanup, add plymouth

This commit is contained in:
Bloxx12 2025-04-09 15:31:18 +02:00
commit f037c63d84

View file

@ -18,6 +18,7 @@ in {
Set the boot loader's timeout. This is 0 by default, but preferably longer on remote servers to make switching to previous generations easier.
'';
type = int;
# I love spamming space
default = 0;
};
};
@ -35,16 +36,20 @@ in {
boot = {
tmp.useTmpfs = true;
initrd = {
verbose = true;
verbose = false;
systemd.enable = true;
};
loader = {
efi.canTouchEfiVariables = true;
# I love spamming space
timeout = cfg.timeout;
systemd-boot = {
enable = cfg.systemd-boot.enable;
# INFO: Leaving this enabled is a security vulneratibility,
# since we can just start /bin/sh from there and get root access.
# Since I have FDE, this isn't _as_ critical, but it would still be
# a bad idea to leave it enabled
editor = mkForce false;
consoleMode = "auto";
configurationLimit = 5;
};
grub = {
@ -55,11 +60,25 @@ in {
};
};
plymouth = {
enable = false;
# font = "${pkgs.jetbrains-mono}/share/fonts/truetype/JetBrainsMono-Regular.ttf";
themePackages = [pkgs.plymouth-matrix-theme];
theme = "matrix";
enable = true;
themePackages = [
(pkgs.adi1090x-plymouth-themes.override
{
selected_themes = [
"hud_3"
];
})
];
theme = "hud_3";
};
};
powerManagement = {
powerDownCommands = ''
${pkgs.plymouth} --show-splash
'';
resumeCommands = ''
${pkgs.plymouth} --quit
'';
};
};
}