39 lines
700 B
Nix
39 lines
700 B
Nix
{ pkgs, ... }:
|
|
|
|
{
|
|
# set bootloader to systemd
|
|
boot.loader = {
|
|
systemd-boot.enable = true;
|
|
efi.canTouchEfiVariables = true;
|
|
};
|
|
|
|
# enable systemd initrd
|
|
boot.initrd.systemd.enable = true;
|
|
|
|
# plymouth
|
|
boot.plymouth = {
|
|
enable = true;
|
|
theme = "spinner";
|
|
};
|
|
|
|
# kernel options
|
|
boot.kernelParams = [
|
|
"quiet"
|
|
"acpi.debug_level=0"
|
|
];
|
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
|
boot.consoleLogLevel = 2;
|
|
|
|
# /tmp in RAM, nix builds go to /var/tmp instead (see settings.nix)
|
|
boot.tmp = {
|
|
useTmpfs = true;
|
|
tmpfsSize = "50%";
|
|
};
|
|
|
|
# Add boot-related packages
|
|
environment.systemPackages = with pkgs; [
|
|
efibootmgr
|
|
terminus_font
|
|
];
|
|
}
|