summaryrefslogtreecommitdiff
path: root/modules/boot/default.nix
blob: dc062fed38d64cc0d021b5b59d04245488398e71 (plain) (blame)
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
31
32
33
34
{ pkgs, config, ... }:
{
  imports = [
    ./grub.nix
    ./systemd-boot.nix
  ];

  boot = {
    crashDump.enable = false;

    loader = {
      timeout = 5;

      efi = {
        canTouchEfiVariables = true;
        efiSysMountPoint = "/boot";
      };
    };

    kernelPackages = pkgs.linuxPackages_zen;
    kernelModules = [ "v4l2loopback" ];
    extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback ];

    kernel.sysctl = {
      "net.ipv6.conf.eth0.disable_ipv6" = true;
      "net.ipv6.conf.tun0.disable_ipv6" = true;
    };

    kernelParams = [
      "nvidia-drm.fbdev=1"
      "nvidia.NVreg_PreserveVideoMemoryAllocations=1"
    ];
  };
}