41 lines
788 B
Nix
41 lines
788 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
|
|
{
|
|
options = {
|
|
apps.gaming = {
|
|
steam.enable = lib.mkEnableOption "enable steam";
|
|
};
|
|
};
|
|
|
|
config = lib.mkIf config.apps.gaming.steam.enable {
|
|
environment.systemPackages = with pkgs; [
|
|
adwsteamgtk
|
|
];
|
|
programs = {
|
|
steam = {
|
|
enable = true;
|
|
remotePlay.openFirewall = true;
|
|
dedicatedServer.openFirewall = true;
|
|
localNetworkGameTransfers.openFirewall = true;
|
|
gamescopeSession.enable = true;
|
|
protontricks.enable = true;
|
|
extraCompatPackages = with pkgs; [
|
|
proton-ge-bin
|
|
];
|
|
extraPackages = with pkgs; [
|
|
gamescope
|
|
];
|
|
};
|
|
gamescope = {
|
|
enable = true;
|
|
capSysNice = true;
|
|
};
|
|
};
|
|
};
|
|
|
|
}
|