58 lines
1.3 KiB
Nix
58 lines
1.3 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 ];
|
||
}))
|
||
];
|
||
|
||
services.wivrn = {
|
||
enable = true;
|
||
openFirewall = true;
|
||
|
||
# Run WiVRn as a systemd service on startup
|
||
autoStart = true;
|
||
};
|
||
|
||
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
|
||
];
|
||
};
|
||
}
|