NixToSee/modules/plymouth.nix

36 lines
924 B
Nix

{pkgs, ...}: {
boot = let
theme_name = "deus_ex";
in {
# could lead to problems: https://github.com/NixOS/nixpkgs/issues/26722
initrd.systemd.enable = true;
plymouth = {
enable = true;
theme = theme_name;
themePackages = with pkgs; [
# By default we would install all themes
(adi1090x-plymouth-themes.override {
selected_themes = [theme_name];
})
];
};
# Enable "Silent Boot"
consoleLogLevel = 0;
initrd.verbose = false;
kernelParams = [
"quiet"
"splash"
"boot.shell_on_fail"
"loglevel=3"
"rd.systemd.show_status=false"
"rd.udev.log_level=3"
"udev.log_priority=3"
];
# Hide the OS choice for bootloaders.
# It's still possible to open the bootloader list by pressing any key
# It will just not appear on screen unless a key is pressed
loader.timeout = 0;
};
}