nichts/modules/gui/steam.nix

29 lines
710 B
Nix
Raw Normal View History

2024-05-22 14:29:45 +02:00
{
config,
lib,
...
}:
with lib; let
2024-05-26 03:00:51 +02:00
inherit (config.modules.other.system) username;
2024-04-17 15:56:45 +02:00
cfg = config.modules.programs.steam;
in {
options.modules.programs.steam = {
enable = mkEnableOption "steam";
gamescope = mkEnableOption "gamescope";
2024-04-17 15:56:45 +02:00
};
config = mkIf cfg.enable {
programs.steam = {
enable = true;
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
gamescopeSession.enable = mkIf cfg.gamescope true;
2024-04-17 15:56:45 +02:00
};
2024-06-01 19:31:05 +02:00
programs.gamemode.enable = true;
environment.systemPackages = [pkgs.protonup];
environment.sessionVariables = {
2024-07-06 15:53:16 +02:00
STEAM_EXTRA_COMPAT_TOOLS_PATHS = "/home/${username}/.steam/root/compatibilitytoolds.d";
2024-06-01 19:31:05 +02:00
};
2024-04-17 15:56:45 +02:00
};
}