This repository has been archived on 2024-04-07. You can view files and clone it, but cannot push or open issues or pull requests.
nixos-config/system/boot.nix

46 lines
1.0 KiB
Nix

{ config, pkgs, lib, inputs, ... }: {
console = {
font = "ter-120n";
packages = [ pkgs.terminus_font ];
earlySetup = false;
};
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"
# Disable password timeout
"luks.options=timeout=0"
"rd.luks.options=timeout=0"
"rootflags=x-systemd.device-timeout=0"
];
initrd.systemd.enable = true;
loader = {
# 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
timeout = 0;
systemd-boot = {
enable = true;
# editor = false;
configurationLimit = 50;
};
};
plymouth = {
enable = true;
theme = lib.mkIf (pkgs.uservars.desktop == "sway") "red_loader";
themePackages = [
pkgs.plymouth-theme-red
];
};
};
}