2024-10-21 12:31:30 +07:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
modulesPath,
|
|
|
|
...
|
|
|
|
}:
|
2024-06-12 09:54:11 +07:00
|
|
|
|
|
|
|
{
|
2024-10-21 12:31:30 +07:00
|
|
|
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
2024-06-12 09:54:11 +07:00
|
|
|
|
2024-10-21 12:31:30 +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
|
|
|
|
2024-10-21 12:31:30 +07:00
|
|
|
fileSystems."/" = {
|
|
|
|
device = "/dev/disk/by-label/NIXROOT";
|
|
|
|
fsType = "ext4";
|
|
|
|
};
|
2024-06-12 09:54:11 +07:00
|
|
|
|
2024-10-21 12:31:30 +07:00
|
|
|
fileSystems."/boot" = {
|
|
|
|
device = "/dev/disk/by-label/NIXBOOT";
|
|
|
|
fsType = "vfat";
|
|
|
|
};
|
2024-06-12 09:54:11 +07:00
|
|
|
|
2024-10-21 12:31:30 +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
|
|
|
}
|