sys-config/hosts/main-laptop/hardware-configuration.nix
2025-02-11 22:00:49 +01:00

37 lines
722 B
Nix

{
config,
lib,
modulesPath,
...
}:
{
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
boot.initrd.availableKernelModules = [
"nvme"
"xhci_pci"
"usbhid"
"usb_storage"
"sd_mod"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" = {
label = "nixos";
fsType = "ext4";
};
fileSystems."/boot" = {
label = "BOOT";
fsType = "vfat";
};
swapDevices = [ { label = "swap"; } ];
networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}