layne/wynne: mess with gpu stuff
This commit is contained in:
parent
d9c64f9727
commit
018120c71c
5 changed files with 19 additions and 3 deletions
|
@ -12,6 +12,10 @@ _: {
|
|||
nix.auto-gc = true;
|
||||
};
|
||||
|
||||
environment.sessionVariables = {
|
||||
VDPAU_DRIVER = "va_gl";
|
||||
};
|
||||
|
||||
i18n = {
|
||||
defaultLocale = "en_US.UTF-8";
|
||||
extraLocaleSettings = {
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -12,6 +12,10 @@ _: {
|
|||
nix.auto-gc = true;
|
||||
};
|
||||
|
||||
environment.sessionVariables = {
|
||||
VDPAU_DRIVER = "va_gl";
|
||||
};
|
||||
|
||||
i18n = {
|
||||
defaultLocale = "en_US.UTF-8";
|
||||
extraLocaleSettings = {
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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"}}`
|
||||
}
|
||||
'';
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue