vr: organize

This commit is contained in:
2024-10-20 02:21:24 -04:00
parent 9849e6d22b
commit 4e4f69484f

View File

@@ -7,15 +7,19 @@
# Use my fork for WiVRn 0.20 # Use my fork for WiVRn 0.20
package = inputs.wivrn.legacyPackages.${pkgs.system}.wivrn; package = inputs.wivrn.legacyPackages.${pkgs.system}.wivrn;
# Write information to /etc/xdg/openxr/1/active_runtime.json, VR applications
# will automatically read this and work with wivrn
defaultRuntime = true;
# Executing it through the systemd service executes WiVRn w/ CAP_SYS_NICE # Executing it through the systemd service executes WiVRn w/ CAP_SYS_NICE
# Resulting in no stutters! # Resulting in no stutters!
defaultRuntime = true;
autoStart = true; autoStart = true;
# Config for WiVRn # Config for WiVRn
config = { config = {
enable = true; enable = true;
json = { json = {
# 1.0x display scaling
scale = 1.0; scale = 1.0;
# 100 Mb/s # 100 Mb/s
bitrate = 100000000; bitrate = 100000000;
@@ -23,6 +27,7 @@
{ {
encoder = "vaapi"; encoder = "vaapi";
codec = "h265"; codec = "h265";
# 1.0 x 1.0 scaling
width = 1.0; width = 1.0;
height = 1.0; height = 1.0;
offset_x = 0.0; offset_x = 0.0;