44 lines
890 B
Nix
44 lines
890 B
Nix
|
# Hardware configuration file common to all Lenovo Yoga 7i devices
|
||
|
{
|
||
|
config,
|
||
|
lib,
|
||
|
pkgs,
|
||
|
modulesPath,
|
||
|
...
|
||
|
}: {
|
||
|
imports = [
|
||
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||
|
];
|
||
|
|
||
|
boot = {
|
||
|
initrd = {
|
||
|
availableKernelModules = ["xhci_pci" "thunderbolt" "nvme" "usbhid" "usb_storage" "sd_mod"];
|
||
|
kernelModules = [];
|
||
|
};
|
||
|
kernelModules = ["kvm-intel"];
|
||
|
# i8042 parameters required for working keyboard
|
||
|
kernelParams = [
|
||
|
"i8042.direct"
|
||
|
"i8042.dumbkbd"
|
||
|
];
|
||
|
extraModulePackages = [];
|
||
|
};
|
||
|
|
||
|
fileSystems."/" = {
|
||
|
device = "/dev/disk/by-label/nixos";
|
||
|
fsType = "ext4";
|
||
|
};
|
||
|
|
||
|
fileSystems."/boot" = {
|
||
|
device = "/dev/disk/by-label/boot";
|
||
|
fsType = "vfat";
|
||
|
};
|
||
|
|
||
|
swapDevices = [
|
||
|
{device = "/dev/disk/by-label/swap";}
|
||
|
];
|
||
|
|
||
|
hardware.opengl.extraPackages = with pkgs; [vaapiIntel];
|
||
|
nix.maxJobs = lib.mkDefault 4;
|
||
|
}
|