summaryrefslogblamecommitdiffstats
path: root/modules/games/games.nix
blob: 509b1056529859557d6bfa69a4beff782c311eef (plain) (tree)






















                                                               
{ 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
        ];
    };
}