2024-04-07 22:16:33 -04:00
|
|
|
{
|
|
|
|
config,
|
2024-06-28 21:07:20 -04:00
|
|
|
lib,
|
|
|
|
pkgs,
|
2024-04-07 22:16:33 -04:00
|
|
|
...
|
|
|
|
}: {
|
2024-06-28 21:07:20 -04:00
|
|
|
config =
|
|
|
|
lib.mkIf (
|
|
|
|
config.ar.apps.steam.enable
|
|
|
|
|| config.ar.desktop.steam.enable
|
|
|
|
) {
|
2024-07-06 17:53:41 -04:00
|
|
|
hardware.steam-hardware.enable = true;
|
|
|
|
|
2024-06-28 21:07:20 -04:00
|
|
|
programs = {
|
|
|
|
gamescope.enable = config.ar.desktop.steam.enable;
|
2024-06-15 23:19:33 -04:00
|
|
|
|
2024-06-28 21:07:20 -04:00
|
|
|
steam = {
|
|
|
|
enable = true;
|
|
|
|
dedicatedServer.openFirewall = true;
|
|
|
|
extraCompatPackages = with pkgs; [proton-ge-bin];
|
|
|
|
gamescopeSession.enable = config.ar.desktop.steam.enable;
|
|
|
|
localNetworkGameTransfers.openFirewall = true;
|
|
|
|
remotePlay.openFirewall = true;
|
|
|
|
};
|
2024-06-15 20:21:34 -04:00
|
|
|
};
|
2024-03-28 16:13:46 -04:00
|
|
|
};
|
|
|
|
}
|