Added hardware for Lenovo x201
This commit is contained in:
parent
b87b1a5b29
commit
6a46666f1a
25
hardware/lenovo_x201.nix
Normal file
25
hardware/lenovo_x201.nix
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
# 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."/" =
|
||||||
|
{ device = "/dev/disk/by-uuid/f67b21ce-15c8-4008-bd08-01763f5cd4be";
|
||||||
|
fsType = "ext4";
|
||||||
|
};
|
||||||
|
|
||||||
|
swapDevices =
|
||||||
|
[ { device = "/dev/disk/by-uuid/115d6657-bb74-4d6b-bd04-7557a83ebd52"; }
|
||||||
|
];
|
||||||
|
|
||||||
|
hardware.opengl.extraPackages = with pkgs; [ vaapiIntel ];
|
||||||
|
nix.maxJobs = lib.mkDefault 4;
|
||||||
|
}
|
Loading…
Reference in a new issue