layne/wynne: mess with gpu stuff

This commit is contained in:
Adithya 2024-09-14 12:41:59 +05:30
parent d9c64f9727
commit 018120c71c
Signed by: adtya
GPG key ID: B8857BFBA2C47B9C
5 changed files with 19 additions and 3 deletions

View file

@ -12,6 +12,10 @@ _: {
nix.auto-gc = true; nix.auto-gc = true;
}; };
environment.sessionVariables = {
VDPAU_DRIVER = "va_gl";
};
i18n = { i18n = {
defaultLocale = "en_US.UTF-8"; defaultLocale = "en_US.UTF-8";
extraLocaleSettings = { extraLocaleSettings = {

View file

@ -4,6 +4,10 @@
hardware = { hardware = {
cpu.intel.updateMicrocode = lib.mkDefault true; cpu.intel.updateMicrocode = lib.mkDefault true;
enableRedistributableFirmware = true; enableRedistributableFirmware = true;
graphics = {
enable = true;
extraPackages = with pkgs; [ intel-media-driver vpl-gpu-rt libvdpau-va-gl ];
};
}; };
boot = { boot = {
@ -15,7 +19,7 @@
}; };
kernelModules = [ "kvm-intel" ]; kernelModules = [ "kvm-intel" ];
kernelPackages = lib.mkDefault pkgs.linuxPackages_latest; kernelPackages = lib.mkDefault pkgs.linuxPackages_latest;
kernelParams = [ ]; kernelParams = [ "i915.enable_fbc=1" "i915.enable_psr=2" ];
kernel.sysctl = { kernel.sysctl = {
"vm.swappiness" = 10; "vm.swappiness" = 10;
"vm.dirty_ratio" = 3; "vm.dirty_ratio" = 3;

View file

@ -12,6 +12,10 @@ _: {
nix.auto-gc = true; nix.auto-gc = true;
}; };
environment.sessionVariables = {
VDPAU_DRIVER = "va_gl";
};
i18n = { i18n = {
defaultLocale = "en_US.UTF-8"; defaultLocale = "en_US.UTF-8";
extraLocaleSettings = { extraLocaleSettings = {

View file

@ -4,6 +4,10 @@
hardware = { hardware = {
cpu.intel.updateMicrocode = lib.mkDefault true; cpu.intel.updateMicrocode = lib.mkDefault true;
enableRedistributableFirmware = true; enableRedistributableFirmware = true;
graphics = {
enable = true;
extraPackages = with pkgs; [ intel-media-driver vpl-gpu-rt libvdpau-va-gl ];
};
}; };
boot = { boot = {
@ -15,7 +19,7 @@
}; };
kernelModules = [ "kvm-intel" ]; kernelModules = [ "kvm-intel" ];
kernelPackages = lib.mkDefault pkgs.linuxPackages_latest; kernelPackages = lib.mkDefault pkgs.linuxPackages_latest;
kernelParams = [ ]; kernelParams = [ "i915.enable_fbc=1" "i915.enable_psr=2" ];
kernel.sysctl = { kernel.sysctl = {
"vm.swappiness" = 10; "vm.swappiness" = 10;
"vm.dirty_ratio" = 3; "vm.dirty_ratio" = 3;