From 51320794e6c725564c7387f0219388ec37f4c42a Mon Sep 17 00:00:00 2001 From: Sam Date: Sun, 6 Oct 2024 17:26:39 +0100 Subject: [PATCH] intel gpu hardware firmware --- hosts/semita/default.nix | 34 +++++++++++++++++++--------------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/hosts/semita/default.nix b/hosts/semita/default.nix index 2565bc2..321fea6 100644 --- a/hosts/semita/default.nix +++ b/hosts/semita/default.nix @@ -47,8 +47,8 @@ in { ../common/optional/nfs-mounts/homeshare.nix ../common/optional/printing.nix ../common/optional/docker - ../common/optional/docker/postgres.nix - ../common/optional/nix-bitcoin.nix + ../common/optional/nixos-containers/nix-bitcoin.nix + ../common/optional/nixos-containers/postgres.nix ]; fileSystems."/media/main-ssd" = { @@ -85,6 +85,23 @@ in { pkgs.sof-firmware ]; + nixpkgs.config.packageOverrides = pkgs: { + vaapiIntel = pkgs.vaapiIntel.override {enableHybridCodec = true;}; + }; + + hardware.opengl = { + enable = true; + extraPackages = with pkgs; [ + intel-media-driver + intel-vaapi-driver + vaapiVdpau + libvdpau-va-gl + intel-compute-runtime + vpl-gpu-rt + intel-media-sdk + ]; + }; + networking = { hostName = "semita"; nameservers = ["10.0.10.60" "10.0.10.1" "8.8.8.8"]; @@ -103,19 +120,6 @@ in { } ]; }; - # interfaces.br0 = { - # useDHCP = false; - # ipv4.addresses = [ - # { - # address = "10.0.10.3"; - # prefixLength = 24; - # } - # ]; - # }; - # defaultGateway = { - # address = "10.0.10.1"; - # interface = "eth0"; - # }; }; services.libinput.enable = true;