2024-05-22 14:29:45 +02:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
inputs,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
with lib; let
|
2024-04-17 15:56:45 +02:00
|
|
|
username = config.modules.other.system.username;
|
|
|
|
cfg = config.modules.programs.steam;
|
|
|
|
in {
|
|
|
|
options.modules.programs.steam = {
|
2024-05-15 00:14:59 +02:00
|
|
|
enable = mkEnableOption "steam";
|
|
|
|
gamescope = mkEnableOption "gamescope";
|
2024-04-17 15:56:45 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
programs.steam = {
|
2024-05-15 00:14:59 +02:00
|
|
|
enable = true;
|
|
|
|
remotePlay.openFirewall = true;
|
|
|
|
dedicatedServer.openFirewall = true;
|
|
|
|
gamescopeSession.enable = mkIf cfg.gamescope true;
|
2024-04-17 15:56:45 +02:00
|
|
|
};
|
2024-05-22 14:29:45 +02:00
|
|
|
home-manager.users.${username} = {};
|
2024-04-17 15:56:45 +02:00
|
|
|
};
|
|
|
|
}
|