2024-05-30 16:54:58 -03:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
inputs,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
{
|
2022-12-14 01:05:27 -03:00
|
|
|
console = {
|
2023-12-13 12:38:26 -03:00
|
|
|
font = "${pkgs.terminus_font}/share/consolefonts/ter-120n.psf.gz";
|
2023-01-22 18:12:04 -03:00
|
|
|
packages = [ pkgs.terminus_font ];
|
2022-12-14 01:05:27 -03:00
|
|
|
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"
|
2023-04-23 23:36:22 -03:00
|
|
|
|
|
|
|
# Disable password timeout
|
|
|
|
"luks.options=timeout=0"
|
2023-05-07 22:19:23 -03:00
|
|
|
"rd.luks.options=timeout=0"
|
2023-04-23 23:36:22 -03:00
|
|
|
"rootflags=x-systemd.device-timeout=0"
|
2022-12-14 01:05:27 -03:00
|
|
|
];
|
|
|
|
|
|
|
|
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;
|
2022-12-14 19:15:15 -03:00
|
|
|
configurationLimit = 50;
|
2022-12-14 01:05:27 -03:00
|
|
|
};
|
|
|
|
};
|
|
|
|
plymouth = {
|
|
|
|
enable = true;
|
2023-06-02 17:55:54 -03:00
|
|
|
theme = lib.mkIf (pkgs.uservars.desktop == "sway") "red_loader";
|
2023-08-31 16:22:55 -03:00
|
|
|
themePackages = with pkgs; [
|
2024-05-30 16:54:58 -03:00
|
|
|
(adi1090x-plymouth-themes.override { selected_themes = [ "red_loader" ]; })
|
2022-12-14 01:05:27 -03:00
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|