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