feat: make kernel silent and show gui instead
This commit is contained in:
parent
ddca6d3293
commit
9083fdc4f2
1 changed files with 40 additions and 19 deletions
|
|
@ -16,28 +16,49 @@
|
||||||
./home.nix
|
./home.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.loader = {
|
boot = {
|
||||||
grub = {
|
# Grub config
|
||||||
enable = true;
|
loader = {
|
||||||
efiSupport = true;
|
grub = {
|
||||||
devices = [ "nodev" ];
|
enable = true;
|
||||||
efiInstallAsRemovable = false;
|
efiSupport = true;
|
||||||
extraEntries = ''
|
devices = [ "nodev" ];
|
||||||
# Arch Linux EFI
|
efiInstallAsRemovable = false;
|
||||||
menuentry "Arch Linux" {
|
extraEntries = ''
|
||||||
chainloader (hd1,gpt1)/EFI/arch/grubx64.efi
|
# Arch Linux EFI
|
||||||
}
|
menuentry "Arch Linux" {
|
||||||
# Windows Boot Manager
|
chainloader (hd1,gpt1)/EFI/arch/grubx64.efi
|
||||||
menuentry "Windows" {
|
}
|
||||||
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
|
# Windows Boot Manager
|
||||||
}
|
menuentry "Windows" {
|
||||||
'';
|
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
gfxmodeEfi = "1920x1080x32";
|
||||||
|
};
|
||||||
|
|
||||||
|
efi = {
|
||||||
|
canTouchEfiVariables = true;
|
||||||
|
efiSysMountPoint = "/boot";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
efi = {
|
# Boot theme
|
||||||
canTouchEfiVariables = true;
|
plymouth = {
|
||||||
efiSysMountPoint = "/boot";
|
enable = true;
|
||||||
|
font = "${pkgs.hack-font}/share/fonts/truetype/Hack-Regular.ttf";
|
||||||
|
logo = "${pkgs.nixos-icons}/share/icons/hicolor/128x128/apps/nix-snowflake.png";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Silent boot
|
||||||
|
consoleLogLevel = 3;
|
||||||
|
initrd.verbose = false;
|
||||||
|
kernelParams = [
|
||||||
|
"quiet"
|
||||||
|
"udev.log_level=3"
|
||||||
|
];
|
||||||
|
|
||||||
|
loader.timeout = 5;
|
||||||
};
|
};
|
||||||
|
|
||||||
time.hardwareClockInLocalTime = true;
|
time.hardwareClockInLocalTime = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue