mio-ops/hardware/lenovo_x201.nix

31 lines
676 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>
];
boot.initrd.availableKernelModules = [ "ehci_pci" "ata_piix" "usb_storage" "sd_mod" ];
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
}