summaryrefslogtreecommitdiff
path: root/hel/boot.nix
blob: 5320fcac77fa4bf93e82228b90a5c55b61e170b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ config, lib, pkgs, ... }:

{
  boot = {
    initrd = {
      luks.devices = [ { name = "ssd"; device = "/dev/disk/by-uuid/9e9e430c-f9cd-418e-b66b-60f81ba9293b"; }
                     ];
      availableKernelModules = [ "fbcon" "xhci_pci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
    };

    kernelModules = [ "kvm-intel" ];
    extraModulePackages = [ ];

    loader = {
      systemd-boot.enable = true;
      efi.canTouchEfiVariables = true;
      timeout = null;
    };

    plymouth = {
      enable = true;
    };

    tmpOnTmpfs = true;

    kernelParams = [ "intel_pstate=no_hwp" "quiet" ];

    blacklistedKernelModules = [ "snd_soc_skl" ];
  };
}