2019-12-10 14:40:35 +00:00
|
|
|
# Hardware configuration file common to all Lenovo x201 devices
|
|
|
|
{
|
2022-03-07 14:26:15 +00:00
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
imports = [<nixpkgs/nixos/modules/installer/scan/not-detected.nix>];
|
2019-12-10 14:40:35 +00:00
|
|
|
|
2022-03-07 14:26:15 +00:00
|
|
|
boot.initrd.availableKernelModules = ["ehci_pci" "ata_piix" "usbhid" "usb_storage" "sd_mod" "sr_mod"];
|
|
|
|
boot.initrd.kernelModules = [];
|
|
|
|
boot.kernelModules = ["kvm-intel"];
|
|
|
|
boot.extraModulePackages = [];
|
2019-12-10 14:40:35 +00:00
|
|
|
|
2021-11-16 04:57:23 +00:00
|
|
|
fileSystems."/" = {
|
|
|
|
device = "/dev/disk/by-label/nixos";
|
|
|
|
fsType = "ext4";
|
|
|
|
};
|
2019-12-10 14:40:35 +00:00
|
|
|
|
2022-03-07 14:26:15 +00:00
|
|
|
swapDevices = [{device = "/dev/disk/by-label/swap";}];
|
2019-12-10 14:40:35 +00:00
|
|
|
|
2024-12-04 05:30:47 +00:00
|
|
|
hardware.graphics.extraPackages = with pkgs; [vaapiIntel];
|
2022-12-08 23:27:50 +00:00
|
|
|
nix.settings.max-jobs = lib.mkDefault 4;
|
2019-12-10 15:03:18 +00:00
|
|
|
|
|
|
|
services.thinkfan = {
|
|
|
|
enable = true;
|
|
|
|
smartSupport = true;
|
|
|
|
};
|
2019-12-10 14:40:35 +00:00
|
|
|
}
|