Gaming/steam: add proton-ge
This commit is contained in:
parent
8d0aab3e22
commit
232963fffd
1 changed files with 21 additions and 1 deletions
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue