feat(wip): VR(soon)
This commit is contained in:
parent
e1d29a3693
commit
891eaeaf3c
11
config/optional/vr.nix
Normal file
11
config/optional/vr.nix
Normal 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";
|
||||||
|
};
|
||||||
|
}
|
|
@ -26,6 +26,8 @@
|
||||||
../../config/optional/secureboot.nix
|
../../config/optional/secureboot.nix
|
||||||
../../config/optional/steam.nix
|
../../config/optional/steam.nix
|
||||||
../../config/optional/xserver.nix
|
../../config/optional/xserver.nix
|
||||||
|
../../config/optional/wayland.nix
|
||||||
|
../../config/optional/vr.nix
|
||||||
../../config/optional/zfs.nix
|
../../config/optional/zfs.nix
|
||||||
|
|
||||||
./net.nix
|
./net.nix
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
main = {
|
main = {
|
||||||
launch-preix = "uwsm app --";
|
launch-prefix = "uwsm app --";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -48,6 +48,9 @@ let
|
||||||
'';
|
'';
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
# UWSM starts a SH to read env variables
|
||||||
|
# this ensures all home.sessionVars are exported
|
||||||
|
programs.bash.enable = true;
|
||||||
wayland.windowManager.hyprland = {
|
wayland.windowManager.hyprland = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = mkMerge [
|
settings = mkMerge [
|
||||||
|
@ -144,7 +147,7 @@ in
|
||||||
|
|
||||||
"SUPER,b,exec,uwsm app -- firefox"
|
"SUPER,b,exec,uwsm app -- firefox"
|
||||||
"SUPER,t,exec,uwsm app -- kitty"
|
"SUPER,t,exec,uwsm app -- kitty"
|
||||||
",Menu,exec,uwsm app -- fuzzel"
|
",Menu,exec,fuzzel"
|
||||||
"SUPER,c,exec,${lib.getExe pkgs.scripts.clone-term}"
|
"SUPER,c,exec,${lib.getExe pkgs.scripts.clone-term}"
|
||||||
|
|
||||||
"CTRL,F7,pass,class:^(discord)$"
|
"CTRL,F7,pass,class:^(discord)$"
|
||||||
|
|
|
@ -63,6 +63,7 @@ lib.optionalAttrs (!minimal) {
|
||||||
./gpg
|
./gpg
|
||||||
./impermanence.nix
|
./impermanence.nix
|
||||||
./minion.nix
|
./minion.nix
|
||||||
|
./vr.nix
|
||||||
|
|
||||||
../common
|
../common
|
||||||
../common/impermanence.nix
|
../common/impermanence.nix
|
||||||
|
|
|
@ -30,6 +30,8 @@
|
||||||
|
|
||||||
".config/obs-studio"
|
".config/obs-studio"
|
||||||
|
|
||||||
|
".local/share/monado"
|
||||||
|
|
||||||
# For nextcloud client install
|
# For nextcloud client install
|
||||||
"Nextcloud"
|
"Nextcloud"
|
||||||
".config/Nextcloud"
|
".config/Nextcloud"
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
orca-slicer
|
orca-slicer
|
||||||
hexyl
|
hexyl
|
||||||
gh
|
gh
|
||||||
|
nixpkgs-review
|
||||||
|
|
||||||
via
|
via
|
||||||
|
|
||||||
|
|
33
users/patrick/vr.nix
Normal file
33
users/patrick/vr.nix
Normal 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
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
}
|
Loading…
Reference in a new issue