36 lines
807 B
Nix
36 lines
807 B
Nix
{ pkgs, inputs, ... }:
|
|
let
|
|
system = pkgs.stdenv.hostPlatform.system;
|
|
|
|
pkgsUnstable = import inputs.nixpkgs-unstable {
|
|
inherit system;
|
|
config.allowUnfree = true;
|
|
};
|
|
in
|
|
{
|
|
programs = {
|
|
steam = {
|
|
enable = true;
|
|
package = pkgsUnstable.steam;
|
|
remotePlay.openFirewall = true;
|
|
dedicatedServer.openFirewall = true;
|
|
gamescopeSession.enable = true;
|
|
extraPackages = with pkgs; [
|
|
steamtinkerlaunch
|
|
];
|
|
extraCompatPackages = with pkgs; [
|
|
steamtinkerlaunch
|
|
];
|
|
};
|
|
gamescope = {
|
|
enable = true;
|
|
capSysNice = true;
|
|
package = inputs.nixpkgs-unstable.legacyPackages.${pkgs.stdenv.hostPlatform.system}.gamescope;
|
|
};
|
|
};
|
|
environment.systemPackages = with pkgs; [
|
|
steamtinkerlaunch
|
|
protonup-qt
|
|
];
|
|
}
|