From 2d25990e623cf1e306aac593f3909e382565a12c Mon Sep 17 00:00:00 2001 From: Sokhibjon Orzikulov Date: Wed, 12 Jun 2024 07:55:54 +0500 Subject: [PATCH] adding kernel modules --- robot.nix | 40 +++++++++++++++++++++++----------------- 1 file changed, 23 insertions(+), 17 deletions(-) diff --git a/robot.nix b/robot.nix index 1d8376a..2749b08 100644 --- a/robot.nix +++ b/robot.nix @@ -2,25 +2,31 @@ imports = [ ./disk-config.nix ]; - boot.swraid = { - enable = true; - mdadmConf = '' - MAILADDR sakhib@orzklv.uz - ''; - }; - boot.loader = { - systemd-boot.enable = false; - efi = { - canTouchEfiVariables = true; - efiSysMountPoint = "/boot"; - }; - grub = { - version = 2; + boot = { + swraid = { enable = true; - efiSupport = true; - useOSProber = true; - device = "nodev"; + mdadmConf = '' + MAILADDR sakhib@orzklv.uz + ''; + }; + initrd = { + kernelModules = ["nvme"]; + availableKernelModules = ["xhci_pci" "ahci" "nvme" "usbhid"]; + }; + loader = { + systemd-boot.enable = false; + efi = { + canTouchEfiVariables = true; + efiSysMountPoint = "/boot"; + }; + grub = { + version = 2; + enable = true; + efiSupport = true; + useOSProber = true; + device = "nodev"; + }; }; };