78 lines
1.7 KiB
Nix
78 lines
1.7 KiB
Nix
# Edit this configuration file to define what should be installed on
|
||
# your system. Help is available in the configuration.nix(5) man page
|
||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||
|
||
{ config, pkgs, ... }:
|
||
|
||
#let
|
||
# amdgpu-kernel-module = pkgs.callPackage ./amdgpu-kernel-module.nix {
|
||
# Make sure the module targets the same kernel as your system is using.
|
||
# kernel = config.boot.kernelPackages.kernel;
|
||
# };
|
||
#in
|
||
|
||
{
|
||
imports =
|
||
[ # Include the results of the hardware scan.
|
||
./hardware-configuration.nix
|
||
];
|
||
|
||
networking.hostName = "TheBlackBox";
|
||
|
||
# Linux and VR... nightmare below
|
||
#boot.extraModulePackages = [
|
||
# (amdgpu-kernel-module.overrideAttrs (_: {
|
||
# patches = [ ./amdgpu-cap_sys_nice_begone.patch ];
|
||
# }))
|
||
#];
|
||
|
||
# Synergy
|
||
#services.synergy.server.enable = true;
|
||
|
||
services.wivrn = {
|
||
enable = true;
|
||
openFirewall = true;
|
||
|
||
# Run WiVRn as a systemd service on startup
|
||
autoStart = true;
|
||
steam = {
|
||
enable = true;
|
||
importOXRRuntimes = true;
|
||
package = pkgs.steam.override {
|
||
extraProfile = ''
|
||
# Allows Monado/WiVRn to be used
|
||
export PRESSURE_VESSEL_IMPORT_OPENXR_1_RUNTIMES=1
|
||
# Fixes timezones on VRChat
|
||
unset TZ
|
||
'';
|
||
};
|
||
};
|
||
};
|
||
|
||
programs.alvr = {
|
||
enable = true;
|
||
openFirewall = true;
|
||
};
|
||
|
||
services.monado = {
|
||
enable = true;
|
||
defaultRuntime = true; # Register as default OpenXR runtime
|
||
};
|
||
|
||
systemd.user.services.monado.environment = {
|
||
STEAMVR_LH_ENABLE = "1";
|
||
XRT_COMPOSITOR_COMPUTE = "1";
|
||
};
|
||
|
||
users.users.k3t = {
|
||
packages = with pkgs; [
|
||
virt-viewer
|
||
fuse-overlayfs
|
||
fuse3
|
||
psmisc
|
||
dwarfs
|
||
wineWow64Packages.staging
|
||
];
|
||
};
|
||
}
|