summaryrefslogtreecommitdiffstats
path: root/modules/games/games.nix
blob: 509b1056529859557d6bfa69a4beff782c311eef (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
{ 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-run
        ];

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