NixOS/hardware-configuration/fort.nix

36 lines
897 B
Nix
Raw Normal View History

2024-06-12 09:54:11 +07:00
{ config, lib, modulesPath, ... }:
{
imports =
[
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod" ];
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-06-12 09:54:11 +07:00
fileSystems."/" =
{
device = "/dev/disk/by-label/NIXROOT";
fsType = "ext4";
};
fileSystems."/boot" =
{
device = "/dev/disk/by-label/NIXBOOT";
fsType = "vfat";
};
swapDevices =
[{ device = "/dev/disk/by-label/NIXSWAP"; }];
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
}