From 232963fffd22a11a8ef5a1d578e3defe812de749 Mon Sep 17 00:00:00 2001 From: Toast Date: Wed, 24 Jan 2024 09:43:56 +0100 Subject: [PATCH] Gaming/steam: add proton-ge --- roles/gaming/programs/steam.nix | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/roles/gaming/programs/steam.nix b/roles/gaming/programs/steam.nix index 372a707..a0bb791 100644 --- a/roles/gaming/programs/steam.nix +++ b/roles/gaming/programs/steam.nix @@ -1,11 +1,31 @@ -{ config, pkgs, ... }: +{ config, flakeSelf, ... }: + +let + nix-gaming = flakeSelf.inputs.nix-gaming; +in { + # Get the nix-gaming module + imports = [ + nix-gaming.nixosModules.steamCompat + ]; + programs.steam = { enable = true; # Doubt that I'll use it, but I'll enable it anyways remotePlay.openFirewall = true; + + extraCompatPackages = with nix-gaming.packages.x86_64-linux; [ + proton-ge + ]; }; + + # Use nix-gaming's cachix + nix.settings = { + substituters = ["https://nix-gaming.cachix.org"]; + trusted-public-keys = ["nix-gaming.cachix.org-1:nbjlureqMbRAxR1gJ/f3hxemL9svXaZF/Ees8vCUUs4="]; + }; + # Some linux native games (rise of the tomb raider) use alsa for sound services.pipewire.alsa.enable = if config.services.pipewire.pulse.enable == true then true else false;