Clean up wivrn

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2025-07-26 20:46:35 +01:00
parent 077ceb3c69
commit c4fafe3043

View File

@@ -1,6 +1,11 @@
{ user, home }:
{ pkgs, ... }:
{
networking.firewall = {
allowedTCPPorts = [ 9757 ];
allowedUDPPorts = [ 9757 ];
};
services = {
udev.packages = with pkgs; [ android-udev-rules ];
@@ -14,14 +19,7 @@
};
};
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";
@@ -30,4 +28,6 @@
"/persist/state"."${home}/.config/wivrn" = { };
};
};
home-manager.users.${user}.home.packages = with pkgs; [ wivrn ];
}