mio-ops/hardware/lenovo_x201.nix

29 lines
711 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, ... }:
{
2021-11-16 04:57:23 +00:00
imports = [ <nixpkgs/nixos/modules/installer/scan/not-detected.nix> ];
2019-12-10 14:40:35 +00:00
2021-11-16 04:57:23 +00:00
boot.initrd.availableKernelModules =
[ "ehci_pci" "ata_piix" "usbhid" "usb_storage" "sd_mod" "sr_mod" ];
2020-03-06 04:49:30 +00:00
boot.initrd.kernelModules = [ ];
2019-12-10 14:40:35 +00:00
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
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
2021-11-16 04:57:23 +00:00
swapDevices = [{ 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
}