Gaming/steam: add proton-ge

This commit is contained in:
Toast 2024-01-24 09:43:56 +01:00
parent 8d0aab3e22
commit 232963fffd

View file

@ -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 = { programs.steam = {
enable = true; enable = true;
# Doubt that I'll use it, but I'll enable it anyways # Doubt that I'll use it, but I'll enable it anyways
remotePlay.openFirewall = true; 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 # 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; services.pipewire.alsa.enable = if config.services.pipewire.pulse.enable == true then true else false;