33
hosts/common/configs/user/gui/gaming/wivrn/default.nix
Normal file
33
hosts/common/configs/user/gui/gaming/wivrn/default.nix
Normal file
@@ -0,0 +1,33 @@
|
||||
{ user, home }:
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
services = {
|
||||
udev.packages = with pkgs; [ android-udev-rules ];
|
||||
|
||||
avahi = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
publish = {
|
||||
enable = true;
|
||||
userServices = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
networking.firewall = {
|
||||
allowedTCPPorts = [ 9757 ];
|
||||
allowedUDPPorts = [ 9757 ];
|
||||
};
|
||||
|
||||
environment = {
|
||||
systemPackages = with pkgs; [ wivrn ];
|
||||
|
||||
pathsToLink = [ "/share/openxr" ];
|
||||
etc."xdg/openxr/1/active_runtime.json".source = "${pkgs.wivrn}/share/openxr/1/openxr_wivrn.json";
|
||||
|
||||
persistence = {
|
||||
"/persist/cache"."${home}/.cache/wivrn" = { };
|
||||
"/persist/state"."${home}/.config/wivrn" = { };
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user