nix-stuff/roles/gaming/programs/steam.nix

36 lines
877 B
Nix

{ 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;
# Celeste mod manager
home-manager.users.toast.services.flatpak.packages = [
"io.github.everestapi.Olympus"
];
}