add gaming
This commit is contained in:
@@ -10,17 +10,15 @@ in {
|
|||||||
enable = lib.mkEnableOption "enable proton ge";
|
enable = lib.mkEnableOption "enable proton ge";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
# this is an imperitive install after rebuild run `protonup`
|
# this is an imperitive install after rebuild run `protonup`
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
protonup
|
protonup-ng
|
||||||
];
|
];
|
||||||
|
|
||||||
# tells `protonup` what path to use
|
# tells `protonup` what path to use
|
||||||
environment.sessionVariables = {
|
environment.sessionVariables = {
|
||||||
STEAM_EXTRA_COMPACT_TOOLS_PATHS =
|
STEAM_EXTRA_COMPACT_TOOLS_PATHS = "/home/blake/.steam/root/compatibilitytools.d";
|
||||||
"/home/blake/.steam/root/compatibilitytools.d";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,8 +13,9 @@ in {
|
|||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
programs.steam = {
|
programs.steam = {
|
||||||
enable = true;
|
enable = true;
|
||||||
# requires setting launch option `gamescope %command%`
|
gamescopeSession.enable = true; # requires setting launch option `gamescope %command%`
|
||||||
gamescopeSession.enable = true;
|
remotePlay.openFirewall = true; # open ports for remote play
|
||||||
|
#dedicatedServer.openFirewall = true; # open ports for source dedicated server
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user