mio-ops/hardware/lenovo_x201.nix

32 lines
729 B
Nix
Raw Normal View History

2019-12-10 14:40:35 +00:00
# Hardware configuration file common to all Lenovo x201 devices
{ config, lib, pkgs, ... }:
{
imports =
[ <nixpkgs/nixos/modules/installer/scan/not-detected.nix>
];
2020-03-06 04:49:30 +00:00
boot.initrd.availableKernelModules = [ "ehci_pci" "ata_piix" "usbhid" "usb_storage" "sd_mod" "sr_mod" ];
boot.initrd.kernelModules = [ ];
2019-12-10 14:40:35 +00:00
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
2019-12-11 00:03:58 +00:00
{ device = "/dev/disk/by-label/nixos";
2019-12-10 14:40:35 +00:00
fsType = "ext4";
};
swapDevices =
2019-12-11 00:03:58 +00:00
[ { device = "/dev/disk/by-label/swap"; }
2019-12-10 14:40:35 +00:00
];
hardware.opengl.extraPackages = with pkgs; [ vaapiIntel ];
nix.maxJobs = 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
}