summaryrefslogtreecommitdiffstats
path: root/modules/games/games.nix
blob: b345aaca8cf5de61db21c6249aa1e7ecd23b85d0 (plain) (blame)
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
{ config, lib, pkgs, user, ... }:
with lib;
{
    options = {
        games = {
            enable = mkOption {
                type = types.bool;
                default = false;
            };
        };
    };

    config = mkIf (config.games.enable) {
        environment.systemPackages = with pkgs; [
            steam
            steam-run
            wineWowPackages.staging
            winetricks
            protontricks
            dotnet-sdk_7
        ];

        home-manager.users.${user}.home.packages = with pkgs; [
            minetest
            prismlauncher
        ];
    };
}