Fix vr setup

This commit is contained in:
GHOSCHT 2024-01-07 15:43:08 +01:00
parent 14f7c99c30
commit 61bcca0e3d
Signed by: ghoscht
GPG key ID: 2C2C1C62A5388E82
3 changed files with 7 additions and 45 deletions

View file

@ -7,45 +7,7 @@
programs = {
steam = {
enable = true;
remotePlay.openFirewall = true;
};
alvr = {
enable = true;
openFirewall = true;
};
};
hardware = {
# Enable Steam hardware compatibility
# steam-hardware.enable = true;
# Enable OpenGL
opengl = {
enable = true;
driSupport = true;
driSupport32Bit = true;
extraPackages = with pkgs; [libva-utils];
};
};
# Allow Minecraft server ports
networking.firewall.allowedTCPPorts = [25565];
# Fixes SteamLink/Remote play crashing, add packages necessary for VR
environment.systemPackages = with pkgs;
[libcanberra protonup-qt]
++ [
android-tools
android-udev-rules
sidequest
BeatSaberModManager
helvum
];
# Fixes issue with SteamVR not starting
system.activationScripts = {
fixSteamVR = "${pkgs.libcap}/bin/setcap CAP_SYS_NICE+ep /home/ghoscht/.local/share/Steam/steamapps/common/SteamVR/bin/linux64/vrcompositor-launcher";
};
xdg.mime = {

View file

@ -1,6 +1,6 @@
{
# programs.alvr = {
# enable = true;
# openFirewall = true;
# };
programs.alvr = {
enable = true;
openFirewall = true;
};
}

View file

@ -4,10 +4,10 @@
fetchurl,
}: let
pname = "alvr";
version = "20.5.0";
version = "v21.0.0-dev00+nightly.2023.12.31";
src = fetchurl {
url = "https://github.com/alvr-org/ALVR/releases/download/v${version}/ALVR-x86_64.AppImage";
hash = "sha256-shA93fK/F+PNRv+DCTfvN+tm0w/sj/yPEYc5ms2vHRk=";
url = "https://github.com/alvr-org/ALVR-nightly/releases/download/v21.0.0-dev00%2Bnightly.2023.12.31/ALVR-x86_64.AppImage";
hash = "sha256-bRnuQGGSXd+QJGKzACgfwFOmKgk3u9JoIj6krB+HHC8=";
};
appimageContents = appimageTools.extractType2 {inherit pname version src;};