nichts/modules/gui/steam.nix
2024-05-26 03:00:51 +02:00

24 lines
526 B
Nix

{
config,
lib,
...
}:
with lib; let
inherit (config.modules.other.system) username;
cfg = config.modules.programs.steam;
in {
options.modules.programs.steam = {
enable = mkEnableOption "steam";
gamescope = mkEnableOption "gamescope";
};
config = mkIf cfg.enable {
programs.steam = {
enable = true;
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
gamescopeSession.enable = mkIf cfg.gamescope true;
};
home-manager.users.${username} = {};
};
}