diff --git a/modules/gaming/steam.nix b/modules/gaming/steam.nix index 8e60796..ff1e4ea 100644 --- a/modules/gaming/steam.nix +++ b/modules/gaming/steam.nix @@ -6,13 +6,21 @@ # requires dotfiles-modules.modules.nixos.hyprland to function # this is also only compatible with a home on the qepc system flake.modules.homeManager.qepc-steamtv = { pkgs, ... }: { - dotfiles-modules.hyprland.extraConfig = '' - hl.bind(MainMod .. "+ SHIFT + G", - hl.dsp.exec_cmd( - "${pkgs.gamescope}/bin/gamescope -W 2560 -H 1440 -f -e -- steam -bigpicture", - { workspace = "9" } + dotfiles-modules.hyprland.extraConfig = + let + audioDeviceSearchTerm = "SONY TV"; + script = pkgs.writeShellScriptBin "switch-to-steam-tv" '' + nu -c 'wpctl set-default (wpctl status | lines | where ($it | str contains "${audioDeviceSearchTerm}") | str replace -r "│\\s*(\\d+).*" "$1" | first)' + ${pkgs.gamescope}/bin/gamescope -W 2560 -H 1440 -f -e -- steam -bigpicture + ''; + in + '' + hl.bind(MainMod .. "+ SHIFT + G", + hl.dsp.exec_cmd( + "${script}/bin/switch-to-steam-tv", + { workspace = "9" } + ) ) - ) - ''; + ''; }; } diff --git a/modules/programs/programs.nix b/modules/programs/programs.nix index efe9fb5..4c7f3f5 100644 --- a/modules/programs/programs.nix +++ b/modules/programs/programs.nix @@ -1,5 +1,12 @@ { self, inputs, ... }: let + blender = + pkgs: + pkgs.blender.override { + config.cudaSupport = true; + config.rocmSupport = false; + }; + tools = pkgs: [ pkgs.playerctl pkgs.imagemagick @@ -8,6 +15,7 @@ let pkgs.steam-run pkgs.sops pkgs.pavucontrol + (blender pkgs) ]; social = pkgs: [