nix-config/modules/hosts/lemp11/hardware.nix
Oliver Davies ca3c3e756b
Some checks are pending
/ check (push) Waiting to run
Re-add lemp11 configuration
2025-11-22 13:42:58 +00:00

50 lines
1.1 KiB
Nix

{
flake.modules.nixos."nixosConfigurations/lemp11" =
{
config,
lib,
modulesPath,
...
}:
{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [
"xhci_pci"
"thunderbolt"
"nvme"
"usb_storage"
"sd_mod"
"sdhci_pci"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" = {
device = "/dev/disk/by-uuid/10d8c0fe-f300-4bd4-aab9-da48b42665f1";
fsType = "ext4";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/1ED3-23DB";
fsType = "vfat";
options = [
"fmask=0077"
"dmask=0077"
];
};
swapDevices = [
{ device = "/dev/disk/by-uuid/51cc1fd6-692d-4043-bb33-f1935ea88313"; }
];
networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
};
}