2023-03-20 01:10:43 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
2024-06-28 21:11:49 +00:00
|
|
|
lib,
|
2023-03-20 01:10:43 +00:00
|
|
|
...
|
2024-06-28 21:11:49 +00:00
|
|
|
}: let
|
2023-03-20 01:10:43 +00:00
|
|
|
cfg = config.aa.apps.steam;
|
|
|
|
in {
|
2024-06-28 21:11:49 +00:00
|
|
|
options.aa.apps.steam = {
|
|
|
|
enable = lib.options.mkEnableOption "steam";
|
2023-03-20 01:10:43 +00:00
|
|
|
};
|
|
|
|
|
2024-06-28 21:11:49 +00:00
|
|
|
config = lib.mkIf cfg.enable {
|
2023-03-20 01:10:43 +00:00
|
|
|
programs.steam = {
|
|
|
|
enable = true;
|
|
|
|
remotePlay.openFirewall = true;
|
|
|
|
dedicatedServer.openFirewall = true;
|
2024-06-28 21:11:49 +00:00
|
|
|
extraCompatPackages = with pkgs; [
|
|
|
|
proton-ge-bin
|
|
|
|
];
|
2023-03-20 01:10:43 +00:00
|
|
|
};
|
2023-03-25 16:11:44 +00:00
|
|
|
|
2024-06-28 21:11:49 +00:00
|
|
|
hardware.graphics = {
|
2023-03-25 16:11:44 +00:00
|
|
|
enable = true;
|
2024-06-28 21:11:49 +00:00
|
|
|
enable32Bit = true;
|
2023-08-06 17:00:47 +00:00
|
|
|
};
|
2023-03-20 01:10:43 +00:00
|
|
|
};
|
|
|
|
}
|