update intel config

This commit is contained in:
jacekpoz 2024-09-01 23:40:43 +02:00
parent 0861077bba
commit 43e3f57bed
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8
7 changed files with 39 additions and 77 deletions

View file

@ -0,0 +1,34 @@
{
lib,
pkgs,
...
}: let
inherit (lib.attrsets) attrValues;
in {
# https://github.com/NixOS/nixos-hardware/blob/master/common/gpu/intel/default.nix
boot.initrd.kernelModules = [ "i915" ];
hardware.graphics = {
enable = true;
enable32Bit = true;
extraPackages = attrValues {
inherit (pkgs)
mesa
libdrm
libva
vaapiVdpau
libvdpau-va-gl
intel-vaapi-driver
intel-media-driver
;
};
extraPackages32 = attrValues {
inherit (pkgs.driversi686Linux)
mesa
libvdpau-va-gl
intel-vaapi-driver
intel-media-driver
;
};
};
}

View file

@ -5,7 +5,6 @@
pkgs,
...
}: let
inherit (lib.attrsets) attrValues;
inherit (lib.meta) getExe getExe';
inherit (lib.modules) mkForce;
@ -36,25 +35,6 @@ in {
# enable = true;
# platform = "ipu6";
# };
graphics = {
enable = true;
enable32Bit = true;
extraPackages = attrValues {
inherit (pkgs)
mesa
libdrm
libva
vaapiVdpau
libvdpau-va-gl
;
};
extraPackages32 = attrValues {
inherit (pkgs.driversi686Linux)
mesa
libvdpau-va-gl
;
};
};
};
services = {

View file

@ -8,6 +8,7 @@ in {
imports = map (append ../common/optional) [
"adb.nix"
"cpu/intel.nix"
"gpu/intel.nix"
"mullvad-vpn.nix"
"opentabletdriver.nix"
"power-supply.nix"

View file

@ -1,37 +1,13 @@
{
config,
lib,
pkgs,
...
}: let
inherit (lib.attrsets) attrValues;
in {
}: {
services = {
pcscd.enable = true;
udisks2.enable = true;
};
hardware.graphics = {
enable = true;
enable32Bit = true;
extraPackages = attrValues {
inherit (pkgs)
mesa
libdrm
libva
vaapiVdpau
libvdpau-va-gl
;
};
extraPackages32 = attrValues {
inherit (pkgs.driversi686Linux)
mesa
libvdpau-va-gl
;
};
};
services.journald = {
extraConfig = ''
SystemMaxUse=100M

View file

@ -8,8 +8,8 @@ in {
imports = map (append ../common/optional) [
"adb.nix"
"asusd.nix"
"cpu/amd.nix"
"gpu/amd.nix"
"cpu/intel.nix"
"gpu/intel.nix"
"mullvad-vpn.nix"
"opentabletdriver.nix"
"power-supply.nix"

View file

@ -1,12 +1,9 @@
{
config,
inputs,
lib,
pkgs,
...
}: let
inherit (lib.attrsets) attrValues;
inherit (config.poz.other.system) username;
in {
nix.settings = {
@ -32,33 +29,6 @@ in {
extraGroups = [ "docker" ];
};
hardware = {
sensor.iio.enable = true;
# ipu6 = {
# enable = true;
# platform = "ipu6";
# };
graphics = {
enable = true;
enable32Bit = true;
extraPackages = attrValues {
inherit (pkgs)
mesa
libdrm
libva
vaapiVdpau
libvdpau-va-gl
;
};
extraPackages32 = attrValues {
inherit (pkgs.driversi686Linux)
mesa
libvdpau-va-gl
;
};
};
};
services = {
pcscd.enable = true;

View file

@ -8,6 +8,7 @@ in {
imports = map (append ../common/optional) [
"cpu/intel.nix"
"displaylink.nix"
"gpu/intel.nix"
"suspend.nix"
"v4l2.nix"
"wayland.nix"