37 lines
935 B
Nix
37 lines
935 B
Nix
{ config, flakeSelf, pkgs, ... }:
|
|
|
|
let
|
|
nix-gaming = flakeSelf.inputs.nix-gaming;
|
|
in
|
|
|
|
{
|
|
# Get the nix-gaming module
|
|
imports = [
|
|
# This module is basically built in to nixpkgs now, so it;s not useful
|
|
# 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 pkgs; [
|
|
proton-ge-bin
|
|
];
|
|
};
|
|
|
|
# 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"
|
|
];
|
|
}
|