diff options
| author | Kyren223 <Kyren223@proton.me> | 2025-05-16 16:06:11 +0300 |
|---|---|---|
| committer | Kyren223 <Kyren223@proton.me> | 2025-05-16 16:06:11 +0300 |
| commit | 2c5db1c0de31ac1b16f77d5b2b7412e1d4e4afc3 (patch) | |
| tree | 7c6bb44aa007a2a89fb96e699a294c035d080a25 /modules/gaming.nix | |
| parent | 4423b2f08f38c60b1e93c8a2182e6826768ceaa2 (diff) | |
Refactored NixOS config to be more modular
Diffstat (limited to 'modules/gaming.nix')
| -rw-r--r-- | modules/gaming.nix | 33 |
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 + ]; + + }; +} |
