Fix vr setup
This commit is contained in:
parent
14f7c99c30
commit
61bcca0e3d
3 changed files with 7 additions and 45 deletions
|
@ -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 = {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
# programs.alvr = {
|
||||
# enable = true;
|
||||
# openFirewall = true;
|
||||
# };
|
||||
programs.alvr = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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;};
|
||||
|
|
Loading…
Reference in a new issue