43 lines
1.1 KiB
Nix
43 lines
1.1 KiB
Nix
{ config, pkgs, lib, ... }:
|
|
|
|
let
|
|
hostname = config.networking.hostName or "traveldroid";
|
|
in
|
|
{
|
|
boot.loader = {
|
|
efi = {
|
|
canTouchEfiVariables = true;
|
|
efiSysMountPoint = "/boot"; # matches hardware
|
|
};
|
|
|
|
grub = {
|
|
enable = true;
|
|
efiSupport = true;
|
|
device = "nodev"; # safe for UEFI
|
|
useOSProber = true;
|
|
};
|
|
|
|
timeout = 5;
|
|
};
|
|
|
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
|
boot.kernelParams = [ "quiet" "splash" "udev.log_level=3" "rd.systemd.show_status=false" ];
|
|
boot.consoleLogLevel = 0;
|
|
|
|
boot.initrd.systemd.enable = true;
|
|
boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "sd_mod" "rtsx_usb_sdmmc" ];
|
|
boot.kernelModules = [ "kvm-intel" ];
|
|
|
|
boot.plymouth = {
|
|
enable = true;
|
|
theme = "rings";
|
|
themePackages = [
|
|
(pkgs.adi1090x-plymouth-themes.override { selected_themes = [ "rings" ]; })
|
|
];
|
|
};
|
|
|
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
system.stateVersion = "26.05";
|
|
}
|