summaryrefslogtreecommitdiff
path: root/modules/gaming.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/gaming.nix')
-rw-r--r--modules/gaming.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/modules/gaming.nix b/modules/gaming.nix
new file mode 100644
index 0000000..f6a9c42
--- /dev/null
+++ b/modules/gaming.nix
@@ -0,0 +1,33 @@
+{ pkgs, lib, config, ... }: {
+
+ options.gaming.enable = lib.mkOption {
+ type = lib.types.bool;
+ default = false;
+ description = "enables gaming";
+ };
+
+ config = lib.mkIf config.gaming.enable {
+
+ programs.steam = {
+ enable = true;
+ remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
+ dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server
+ localNetworkGameTransfers.openFirewall = true; # Open ports in the firewall for Steam Local Network Game Transfers
+ };
+
+ environment.systemPackages = with pkgs; [
+ r2modman # For modded valheim
+ prismlauncher # mc
+ drawio # For VH
+
+ (minecraft.overrideAttrs (finalAttrs: previousAttrs: {
+ meta.lib.broken = false;
+ }))
+
+ kdePackages.kmines # Minesweeper for fun lol
+ kdePackages.kpat # Solitaire
+ # btw missing the card/brick thing with weird symbols, not sure what that game was called
+ ];
+
+ };
+}