]> Git — Sourcephile - julm/julm-nix.git/blob - nixos/profiles/hardware/E5500.nix
blackberry: init host
[julm/julm-nix.git] / nixos / profiles / hardware / E5500.nix
1 { pkgs, lib, config, ... }:
2 with lib;
3 {
4 imports = [
5 ../acpid.nix
6 ];
7
8 nixpkgs.hostPlatform = {
9 system = "x86_64-linux";
10 config = "x86_64-unknown-linux-gnu";
11 };
12
13 boot.kernelModules = [ "kvm-intel" ];
14 # https://bugzilla.kernel.org/show_bug.cgi?id=110941
15 boot.initrd.availableKernelModules = [
16 "ahci"
17 "drbg"
18 "ehci_pci"
19 "gf128mul"
20 "hmac"
21 "sd_mod"
22 ];
23 boot.extraModulePackages = with config.boot.kernelPackages; [
24 ];
25 boot.kernelParams = [
26 ];
27
28 hardware.cpu.intel.updateMicrocode = mkDefault config.hardware.enableRedistributableFirmware;
29 hardware.opengl.extraPackages = [
30 pkgs.intel-media-driver # LIBVA_DRIVER_NAME=iHD
31 # LIBVA_DRIVER_NAME=i965 (older but works better for Firefox/Chromium)
32 (if (versionOlder (versions.majorMinor version) "23.11") then pkgs.vaapiIntel else pkgs.intel-vaapi-driver)
33 pkgs.libvdpau-va-gl
34 pkgs.vaapiVdpau
35 ];
36
37 services.upower.enable = true;
38 services.libinput.enable = mkDefault true;
39 }