From 5897af1a6c355f77c78f342d1d6f070670d14a4c Mon Sep 17 00:00:00 2001 From: Jon Santmyer Date: Sat, 14 Oct 2023 10:53:18 -0400 Subject: remove redundant system folder. add useful programs. --- modules/games/default.nix | 3 +++ modules/games/games.nix | 23 +++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 modules/games/default.nix create mode 100644 modules/games/games.nix (limited to 'modules/games') diff --git a/modules/games/default.nix b/modules/games/default.nix new file mode 100644 index 0000000..ff93482 --- /dev/null +++ b/modules/games/default.nix @@ -0,0 +1,3 @@ +[ + ./games.nix +] 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 + ]; + }; +} -- cgit v1.2.1