summaryrefslogtreecommitdiffstats
path: root/modules/games
diff options
context:
space:
mode:
authorJon Santmyer <jon@jonsantmyer.com>2023-10-14 10:53:18 -0400
committerJon Santmyer <jon@jonsantmyer.com>2023-10-14 10:53:18 -0400
commit5897af1a6c355f77c78f342d1d6f070670d14a4c (patch)
treeceacea8620f7a4f5b684837f8019244933286864 /modules/games
parent972bff32235bbd414cbbaba5ac3eeb7979c2bad6 (diff)
downloadnix-config-5897af1a6c355f77c78f342d1d6f070670d14a4c.tar.gz
nix-config-5897af1a6c355f77c78f342d1d6f070670d14a4c.tar.bz2
nix-config-5897af1a6c355f77c78f342d1d6f070670d14a4c.zip
remove redundant system folder. add useful programs.
Diffstat (limited to 'modules/games')
-rw-r--r--modules/games/default.nix3
-rw-r--r--modules/games/games.nix23
2 files changed, 26 insertions, 0 deletions
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
+ ];
+ };
+}