boot/module.nix: cleanup, add plymouth
This commit is contained in:
parent
95e99962d6
commit
f037c63d84
1 changed files with 25 additions and 6 deletions
|
@ -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.
|
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;
|
type = int;
|
||||||
|
# I love spamming space
|
||||||
default = 0;
|
default = 0;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -35,16 +36,20 @@ in {
|
||||||
boot = {
|
boot = {
|
||||||
tmp.useTmpfs = true;
|
tmp.useTmpfs = true;
|
||||||
initrd = {
|
initrd = {
|
||||||
verbose = true;
|
verbose = false;
|
||||||
systemd.enable = true;
|
systemd.enable = true;
|
||||||
};
|
};
|
||||||
loader = {
|
loader = {
|
||||||
efi.canTouchEfiVariables = true;
|
efi.canTouchEfiVariables = true;
|
||||||
# I love spamming space
|
|
||||||
timeout = cfg.timeout;
|
timeout = cfg.timeout;
|
||||||
systemd-boot = {
|
systemd-boot = {
|
||||||
enable = cfg.systemd-boot.enable;
|
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;
|
editor = mkForce false;
|
||||||
|
consoleMode = "auto";
|
||||||
configurationLimit = 5;
|
configurationLimit = 5;
|
||||||
};
|
};
|
||||||
grub = {
|
grub = {
|
||||||
|
@ -55,11 +60,25 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
plymouth = {
|
plymouth = {
|
||||||
enable = false;
|
enable = true;
|
||||||
# font = "${pkgs.jetbrains-mono}/share/fonts/truetype/JetBrainsMono-Regular.ttf";
|
themePackages = [
|
||||||
themePackages = [pkgs.plymouth-matrix-theme];
|
(pkgs.adi1090x-plymouth-themes.override
|
||||||
theme = "matrix";
|
{
|
||||||
|
selected_themes = [
|
||||||
|
"hud_3"
|
||||||
|
];
|
||||||
|
})
|
||||||
|
];
|
||||||
|
theme = "hud_3";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
powerManagement = {
|
||||||
|
powerDownCommands = ''
|
||||||
|
${pkgs.plymouth} --show-splash
|
||||||
|
'';
|
||||||
|
resumeCommands = ''
|
||||||
|
${pkgs.plymouth} --quit
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue