From 97f7412c2cff1343bdcbe06342acbb99506ef328 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Fri, 12 Jan 2024 23:34:28 +0100 Subject: [PATCH] feat: add p330 hardware config --- machines/p330/hardware-configuration.nix | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/machines/p330/hardware-configuration.nix b/machines/p330/hardware-configuration.nix index 48edd98..602988a 100644 --- a/machines/p330/hardware-configuration.nix +++ b/machines/p330/hardware-configuration.nix @@ -6,10 +6,8 @@ (modulesPath + "/installer/scan/not-detected.nix") ]; - boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" "sr_mod" ]; + boot.initrd.availableKernelModules = [ "sd_mod" "sr_mod" ]; boot.initrd.kernelModules = [ "dm-snapshot" ]; - boot.kernelModules = [ "kvm-intel" ]; - boot.extraModulePackages = [ ]; boot.initrd.luks.devices = { crypted = { @@ -46,21 +44,4 @@ [{ device = "/dev/disk/by-uuid/b90199d6-05e8-4994-bf9d-7b07f10d583e"; }]; networking.useDHCP = lib.mkDefault true; - - hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; - - # GPU acceleration - nixpkgs.config.packageOverrides = pkgs: { - vaapiIntel = pkgs.vaapiIntel.override { enableHybridCodec = true; }; - }; - hardware.opengl = { - enable = true; - driSupport = true; - extraPackages = with pkgs; [ - intel-media-driver - vaapiIntel - vaapiVdpau - libvdpau-va-gl - ]; - }; }