nixos/hardware/latitude-e7440.nix

35 lines
679 B
Nix
Raw Normal View History

2021-12-26 20:44:36 +01:00
{
config,
lib,
modulesPath,
...
}: {
imports = [(modulesPath + "/installer/scan/not-detected.nix")];
2021-12-26 20:44:36 +01:00
boot.initrd.availableKernelModules = ["xhci_pci" "ehci_pci" "ahci" "usb_storage" "sd_mod" "sdhci_pci"];
boot.initrd.kernelModules = [];
boot.kernelModules = ["kvm-intel"];
boot.extraModulePackages = [];
2021-12-26 20:44:36 +01:00
fileSystems."/" = {
2024-02-13 18:20:14 +01:00
label = "root";
2021-12-26 20:44:36 +01:00
fsType = "ext4";
};
fileSystems."/boot" = {
2024-02-13 18:20:14 +01:00
label = "boot";
2021-12-26 20:44:36 +01:00
fsType = "vfat";
2024-02-13 18:20:14 +01:00
options = [
"fmask=0077"
"dmask=0077"
];
2021-12-26 20:44:36 +01:00
};
2024-02-13 18:20:14 +01:00
swapDevices = [
{label = "swap";}
];
2021-12-26 20:44:36 +01:00
hardware.cpu.intel.updateMicrocode =
lib.mkDefault config.hardware.enableRedistributableFirmware;
}