add gaming
This commit is contained in:
@@ -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";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user