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;
};
environment.sessionVariables = {
VDPAU_DRIVER = "va_gl";
};
i18n = {
defaultLocale = "en_US.UTF-8";
extraLocaleSettings = {

View file

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

View file

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

View file

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

View file

@ -11,7 +11,7 @@ _: {
handle /.well-known/matrix/client {
header Content-Type application/json
header Access-Control-Allow-Origin *
respond `{"m.homeserver": {"base_url": "https://matrix.acomputer.lol:443"}, "org.matrix.msc3575.proxy": {"url": "https://matrix.acomputer.lol"}}`
respond `{"m.homeserver": {"base_url": "https://matrix.acomputer.lol:443"}, "org.matrix.msc3575.proxy": {"url": "https://matrix.acomputer.lol"}}`
}
'';
};