Move kernel mods to host from profile.

This commit is contained in:
Joseph Hanson 2024-06-23 09:38:07 -05:00
parent cbd9a4a29a
commit 40fe9e6c8b
Signed by: jahanson
SSH key fingerprint: SHA256:vy6dKBECV522aPAwklFM3ReKAVB086rT3oWwiuiFG7o
3 changed files with 17 additions and 15 deletions

View file

@ -1,10 +1,16 @@
{ ... }: { { ... }: {
config = { config = {
# hardware-configuration.nix - half of the hardware-configuration.nix file
networking.hostId = "ad4380db"; networking.hostId = "ad4380db";
networking.hostName = "durincore"; networking.hostName = "durincore";
# Kernel mods
boot = {
initrd = {
availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "sd_mod" ];
kernelModules = [ ];
};
kernelModules = [ "kvm-intel" ];
extraModulePackages = [ ];
};
fileSystems."/" = fileSystems."/" =
{ device = "rpool/root"; { device = "rpool/root";

View file

@ -1,7 +1,7 @@
# Do not modify this file! It was generated by nixos-generate-config # Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes # and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead. # to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }: { config, lib, modulesPath, ... }:
{ {
imports = imports =
@ -10,10 +10,12 @@
networking.hostId = "2132e3bf"; networking.hostId = "2132e3bf";
networking.hostName = "legiondary"; networking.hostName = "legiondary";
boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "ahci" "usb_storage" "usbhid" "sd_mod" ]; boot = {
boot.initrd.kernelModules = [ ]; initrd.availableKernelModules = [ "xhci_pci" "nvme" "ahci" "usb_storage" "usbhid" "sd_mod" ];
boot.kernelModules = [ "kvm-amd" ]; initrd.kernelModules = [ ];
boot.extraModulePackages = [ ]; kernelModules = [ "kvm-amd" ];
extraModulePackages = [ ];
};
fileSystems."/" = fileSystems."/" =
{ device = "zpool/root"; { device = "zpool/root";
@ -45,6 +47,7 @@
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
# System settings and services.
mySystem = { mySystem = {
system.motd.networkInterfaces = [ "eno1" "wlp4s0" ]; system.motd.networkInterfaces = [ "eno1" "wlp4s0" ];
}; };

View file

@ -10,13 +10,6 @@
canTouchEfiVariables = true; canTouchEfiVariables = true;
}; };
}; };
# Kernel mods
initrd = {
availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "sd_mod" ];
kernelModules = [ ];
};
kernelModules = [ "kvm-intel" ];
extraModulePackages = [ ];
}; };
networking = { networking = {