about summary refs log blame commit diff stats
path: root/system/boot/default.nix
blob: 34fd8983a0d5ff0e482b478186514e6ac00cf045 (plain) (tree)
1
2
3
4
5
6
7
8
9
10





              

                                       
      



                                               
                                         
                                              








                                        
{
  config,
  pkgs,
  ...
}: {
  boot = {
    initrd = {
      #compressor = "lz4";
      #compressorArgs = ["-9"];
      kernelModules = ["nvme" "btrfs"];
    };

    kernelPackages = pkgs.linuxPackages_latest;
    loader = {
      grub = {
        enable = true;
        version = 2;
        # theme = pkgs.nixos-grub2-theme;
        splashImage = ./boot_pictures/gnu.png;
        efiSupport = true;
        device = "nodev"; # only for efi
      };
      efi = {
        canTouchEfiVariables = true;
        efiSysMountPoint = "/boot";
      };
    };
  };
}