feat(wip): VR(soon)

This commit is contained in:
Patrick 2024-10-29 22:03:56 +01:00
parent e1d29a3693
commit 891eaeaf3c
Signed by: patrick
GPG key ID: 451F95EFB8BECD0F
8 changed files with 55 additions and 2 deletions

11
config/optional/vr.nix Normal file
View file

@ -0,0 +1,11 @@
{
# can't play VR until https://github.com/hyprwm/Hyprland/pull/8116 is merged
services.monado = {
enable = true;
defaultRuntime = true;
};
systemd.user.services.monado.environment = {
STEAMVR_LH_ENABLE = "1";
XRT_COMPOSITOR_COMPUTE = "1";
};
}

View file

@ -26,6 +26,8 @@
../../config/optional/secureboot.nix
../../config/optional/steam.nix
../../config/optional/xserver.nix
../../config/optional/wayland.nix
../../config/optional/vr.nix
../../config/optional/zfs.nix
./net.nix

View file

@ -4,7 +4,7 @@
enable = true;
settings = {
main = {
launch-preix = "uwsm app --";
launch-prefix = "uwsm app --";
};
};
};

View file

@ -48,6 +48,9 @@ let
'';
in
{
# UWSM starts a SH to read env variables
# this ensures all home.sessionVars are exported
programs.bash.enable = true;
wayland.windowManager.hyprland = {
enable = true;
settings = mkMerge [
@ -144,7 +147,7 @@ in
"SUPER,b,exec,uwsm app -- firefox"
"SUPER,t,exec,uwsm app -- kitty"
",Menu,exec,uwsm app -- fuzzel"
",Menu,exec,fuzzel"
"SUPER,c,exec,${lib.getExe pkgs.scripts.clone-term}"
"CTRL,F7,pass,class:^(discord)$"

View file

@ -63,6 +63,7 @@ lib.optionalAttrs (!minimal) {
./gpg
./impermanence.nix
./minion.nix
./vr.nix
../common
../common/impermanence.nix

View file

@ -30,6 +30,8 @@
".config/obs-studio"
".local/share/monado"
# For nextcloud client install
"Nextcloud"
".config/Nextcloud"

View file

@ -24,6 +24,7 @@
orca-slicer
hexyl
gh
nixpkgs-review
via

33
users/patrick/vr.nix Normal file
View file

@ -0,0 +1,33 @@
{ config, pkgs, ... }:
{
home.packages = [ pkgs.wlx-overlay-s ];
xdg.configFile."openxr/1/active_runtime.json".text = ''
{
"file_format_version": "1.0.0",
"runtime": {
"name": "Monado",
"library_path": "${pkgs.monado}/lib/libopenxr_monado.so"
}
}
'';
xdg.configFile."openvr/openvrpaths.vrpath".text = ''
{
"config" :
[
"${config.xdg.dataHome}/Steam/config"
],
"external_drivers" : null,
"jsonid" : "vrpathreg",
"log" :
[
"${config.xdg.dataHome}/Steam/logs"
],
"runtime" :
[
"${pkgs.opencomposite}/lib/opencomposite"
],
"version" : 1
}
'';
}