vr stuff - only sets on fenix and apalapucia, works
This commit is contained in:
parent
d162b7c9f2
commit
ac0138d8b3
2 changed files with 26 additions and 0 deletions
|
|
@ -39,6 +39,29 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
xdg.configFile."openxr/1/active_runtime.json".source = (if osConfig.var.hostname == "apalapucia" then "${pkgs.monado}/share/openxr/1/openxr_monado.json" else if osConfig.var.username == "fenix" then "${pkgs.wivrn}/share/openxr/1/openxr_wivrn.json" else null);
|
||||||
|
|
||||||
|
xdg.configFile."openvr/openvrpaths.vrpath".text = (if osConfig.var.hostname == "apalapucia" || osConfig.var.hostname == "fenix" then ''
|
||||||
|
{
|
||||||
|
"config" :
|
||||||
|
[
|
||||||
|
"${config.xdg.dataHome}/Steam/config"
|
||||||
|
],
|
||||||
|
"external_drivers" : null,
|
||||||
|
"jsonid" : "vrpathreg",
|
||||||
|
"log" :
|
||||||
|
[
|
||||||
|
"${config.xdg.dataHome}/Steam/logs"
|
||||||
|
],
|
||||||
|
"runtime" :
|
||||||
|
[
|
||||||
|
"${pkgs.xrizer}/lib/xrizer"
|
||||||
|
],
|
||||||
|
"version" : 1
|
||||||
|
}
|
||||||
|
'' else null);
|
||||||
|
|
||||||
|
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
programs.noctalia-shell.enable = true;
|
programs.noctalia-shell.enable = true;
|
||||||
programs.foot = {
|
programs.foot = {
|
||||||
|
|
|
||||||
|
|
@ -38,6 +38,9 @@
|
||||||
|
|
||||||
services.udev.packages = with pkgs; [xr-hardware];
|
services.udev.packages = with pkgs; [xr-hardware];
|
||||||
|
|
||||||
|
services.power-profiles-daemon.enable = true;
|
||||||
|
services.upower.enable = true;
|
||||||
|
|
||||||
boot.kernelModules = [ "kvm-amd" "vhost_vsock" "vfio_virqfd" "vhost-net" "vfio_pci" "vfio_iommu_type1" "vfio"];
|
boot.kernelModules = [ "kvm-amd" "vhost_vsock" "vfio_virqfd" "vhost-net" "vfio_pci" "vfio_iommu_type1" "vfio"];
|
||||||
boot.kernelParams = [ "amd_iommu=on" ];
|
boot.kernelParams = [ "amd_iommu=on" ];
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue