add gaming

This commit is contained in:
2025-11-05 19:09:55 -06:00
parent e329c17546
commit cdbb5f913d
2 changed files with 5 additions and 6 deletions

View File

@@ -10,17 +10,15 @@ in {
enable = lib.mkEnableOption "enable proton ge";
};
# this is an imperitive install after rebuild run `protonup`
config = lib.mkIf cfg.enable {
environment.systemPackages = with pkgs; [
protonup
protonup-ng
];
# tells `protonup` what path to use
environment.sessionVariables = {
STEAM_EXTRA_COMPACT_TOOLS_PATHS =
"/home/blake/.steam/root/compatibilitytools.d";
STEAM_EXTRA_COMPACT_TOOLS_PATHS = "/home/blake/.steam/root/compatibilitytools.d";
};
};
}

View File

@@ -13,8 +13,9 @@ in {
config = lib.mkIf cfg.enable {
programs.steam = {
enable = true;
# requires setting launch option `gamescope %command%`
gamescopeSession.enable = true;
gamescopeSession.enable = true; # requires setting launch option `gamescope %command%`
remotePlay.openFirewall = true; # open ports for remote play
#dedicatedServer.openFirewall = true; # open ports for source dedicated server
};
};
}