summaryrefslogtreecommitdiff
path: root/modules/gaming.nix
blob: 558dc2cab39afb935d571061a0d8030b97fc92c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{ 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

      legendary-gl # Epic games launcher CLI
      heroic # GUI for legendary (and some other stores)
      wineWow64Packages.stagingFull # For non-steam games support, for GE-wine

      osu-lazer-bin
    ];

  };
}