NixOS/hardware-configuration/fort.nix

41 lines
891 B
Nix
Raw Normal View History

{
config,
lib,
modulesPath,
...
}:
2024-06-12 09:54:11 +07:00
{
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
2024-06-12 09:54:11 +07:00
boot.initrd.availableKernelModules = [
"xhci_pci"
"ahci"
"nvme"
"usb_storage"
"sd_mod"
];
2024-06-12 09:54:11 +07:00
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
2024-09-03 15:15:35 +07:00
# boot.kernelParams = [ "snd-intel-dspcfg.dsp_driver=1" ];
2024-07-30 13:35:06 +07:00
fileSystems."/" = {
device = "/dev/disk/by-label/NIXROOT";
fsType = "ext4";
};
2024-06-12 09:54:11 +07:00
fileSystems."/boot" = {
device = "/dev/disk/by-label/NIXBOOT";
fsType = "vfat";
};
2024-06-12 09:54:11 +07:00
swapDevices = [ { device = "/dev/disk/by-label/NIXSWAP"; } ];
2024-06-12 09:54:11 +07:00
networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
2024-09-03 15:15:35 +07:00
hardware.enableAllFirmware = true;
2024-06-12 09:54:11 +07:00
}