desktop: fixes and move from ALVR to WiVRn

This commit is contained in:
2024-10-20 01:59:18 -04:00
parent a194ea6eb9
commit 51a984f518
5 changed files with 72 additions and 31 deletions

View File

@@ -38,7 +38,7 @@
"amdgpu.ppfeaturemask=0xFFF7FFFF"
];
initrd.availableKernelModules = [
kernelModules = [
# kernel module for case fan control
"nct6775"
];
@@ -53,7 +53,7 @@
services.displayManager.autoLogin = {
enable = true;
user = "yourusername";
user = "primary";
};
services.openssh = {
@@ -94,16 +94,35 @@
services.udev.packages = [ pkgs.openrgb ];
hardware.i2c.enable = true;
#System packages
# System packages
environment.systemPackages = with pkgs; [
openrgb-with-all-plugins
lact
];
programs.alvr = {
services.wivrn = {
enable = true;
package = inputs.alvr.legacyPackages.${pkgs.system}.alvr;
openFirewall = true;
package = inputs.wivrn.legacyPackages.${pkgs.system}.wivrn;
defaultRuntime = true;
autoStart = true;
config = {
enable = true;
json = {
scale = 1.0;
bitrate = 100000000;
encoders = [
{
encoder = "vaapi";
codec = "h265";
width = 1.0;
height = 1.0;
offset_x = 0.0;
offset_y = 0.0;
}
];
};
};
};
programs.steam = {
@@ -143,7 +162,6 @@
gpu_path = "/sys/devices/pci0000:00/0000:00:03.1/0000:09:00.0/0000:0a:00.0/0000:0b:00.0/${select_hwmon}";
mobo_path = "/sys/devices/platform/nct6775.656/${select_hwmon}";
fan_speed = "${mobo_path}/pwm4";
in
''
INTERVAL=10