diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 6f521444..103084b5 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -100,12 +100,32 @@ ]; nix.settings.experimental-features = [ "nix-command" "flakes" ]; - # Enable Steam + # Steam and VR programs.steam = { enable = true; remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server }; + services.wivrn = { + enable = true; + openFirewall = true; + # Write information to /etc/xdg/openxr/1/active_runtime.json, VR applications + # will automatically read this and work with WiVRn (Note: This does not currently + # apply for games run in Valve's Proton) + defaultRuntime = true; + autoStart = true; + }; + # Kernel patch for SteamVR performance issues on AMD GPUs + # boot.kernelPatches = [ + # { + # name = "amdgpu-ignore-ctx-privileges"; + # patch = pkgs.fetchpatch { + # name = "cap_sys_nice_begone.patch"; + # url = "https://github.com/Frogging-Family/community-patches/raw/master/linux61-tkg/cap_sys_nice_begone.mypatch"; + # hash = "sha256-Y3a0+x2xvHsfLax/uwycdJf3xLxvVfkfDVqjkxNaYEo="; + # }; + # } + # ]; # Some programs need SUID wrappers, can be configured further or are # started in user sessions. diff --git a/nixos/home.nix b/nixos/home.nix index ca8c3f38..a69e3f4e 100644 --- a/nixos/home.nix +++ b/nixos/home.nix @@ -22,7 +22,6 @@ # VR / Games bs-manager slimevr - wivrn prismlauncher # Gnome Extensions