diff options
Diffstat (limited to 'modules/games/games.nix')
-rw-r--r-- | modules/games/games.nix | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/modules/games/games.nix b/modules/games/games.nix new file mode 100644 index 0000000..509b105 --- /dev/null +++ b/modules/games/games.nix @@ -0,0 +1,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 + ]; + }; +} |