From c4fafe3043a9070e3a1468fc314debe65934dd76 Mon Sep 17 00:00:00 2001 From: Nikolaos Karaolidis Date: Sat, 26 Jul 2025 20:46:35 +0100 Subject: [PATCH] Clean up wivrn Signed-off-by: Nikolaos Karaolidis --- .../configs/user/gui/gaming/wivrn/default.nix | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/hosts/common/configs/user/gui/gaming/wivrn/default.nix b/hosts/common/configs/user/gui/gaming/wivrn/default.nix index 1c57d88..8ef630a 100644 --- a/hosts/common/configs/user/gui/gaming/wivrn/default.nix +++ b/hosts/common/configs/user/gui/gaming/wivrn/default.nix @@ -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 ]; }