34 lines
723 B
Nix
34 lines
723 B
Nix
{ user, home }:
|
|
{ pkgs, ... }:
|
|
{
|
|
networking.firewall = {
|
|
allowedTCPPorts = [ 9757 ];
|
|
allowedUDPPorts = [ 9757 ];
|
|
};
|
|
|
|
services = {
|
|
udev.packages = with pkgs; [ android-udev-rules ];
|
|
|
|
avahi = {
|
|
enable = true;
|
|
openFirewall = true;
|
|
publish = {
|
|
enable = true;
|
|
userServices = true;
|
|
};
|
|
};
|
|
};
|
|
|
|
environment = {
|
|
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" = { };
|
|
};
|
|
};
|
|
|
|
home-manager.users.${user}.home.packages = with pkgs; [ wivrn ];
|
|
}
|