moved vr config to vr.nix
This commit is contained in:
parent
7105f6f597
commit
f1c0233931
9
apps.nix
9
apps.nix
|
@ -18,15 +18,6 @@
|
||||||
ntfs3g
|
ntfs3g
|
||||||
corectrl
|
corectrl
|
||||||
git
|
git
|
||||||
glslang
|
|
||||||
gstreamer
|
|
||||||
libdrm
|
|
||||||
openxr
|
|
||||||
vulkan-loader
|
|
||||||
];
|
];
|
||||||
programs.steam.enable = true;
|
programs.steam.enable = true;
|
||||||
programs.envision = {
|
|
||||||
enable = true;
|
|
||||||
openFirewall = true;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
29
vr.nix
Normal file
29
vr.nix
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
services.wivrn = {
|
||||||
|
enable = true;
|
||||||
|
openFirewall = true;
|
||||||
|
|
||||||
|
defaultRuntime = true;
|
||||||
|
autoStart = true;
|
||||||
|
config = {
|
||||||
|
enable = true;
|
||||||
|
json = {
|
||||||
|
scale = 1.0;
|
||||||
|
bitrate = 100000000;
|
||||||
|
encoders = [
|
||||||
|
{
|
||||||
|
encoder = "vaapi";
|
||||||
|
codec = "h264";
|
||||||
|
width = 1.0;
|
||||||
|
height = 1.0;
|
||||||
|
offset_x = 0.0;
|
||||||
|
offset_y = 0.0;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue