refactor(steam): configure SteamVR with Steam

This commit is contained in:
2026-10-21 19:04:24 -04:00
parent 05920f60b7
commit efd5b3b09f
2 changed files with 26 additions and 26 deletions

View File

@@ -1,15 +1,11 @@
{
config,
lib,
pkgs,
...
}:
# zeus — Ryzen desktop with AMD graphics.
# Disk layout is in ./disk.nix.
# `fileSystems` are derived from it, none declared here.
let
steamVrLauncher = "/home/${config.user.name}/.local/share/Steam/steamapps/common/SteamVR/bin/linux64/vrcompositor-launcher";
in
{
imports = [
./disk.nix
@@ -53,27 +49,6 @@ in
modules.desktop.apps.steam.enable = true;
modules.desktop.apps.vencord.enable = true;
networking.firewall.allowedUDPPorts = [ 10400 ];
programs.gamescope.capSysNice = true;
systemd.paths.steamvr-capabilities = {
wantedBy = [ "multi-user.target" ];
pathConfig = {
PathChanged = steamVrLauncher;
Unit = "steamvr-capabilities.service";
};
};
systemd.services.steamvr-capabilities = {
wantedBy = [ "multi-user.target" ];
path = [ pkgs.libcap ];
script = ''
setcap cap_sys_nice=eip ${lib.escapeShellArg steamVrLauncher}
'';
serviceConfig.Type = "oneshot";
};
home-manager.users.${config.user.name}.wayland.windowManager.hyprland.settings.monitor = [
{
output = "HDMI-A-1";