about summary refs log tree commit diff
path: root/pkgs/games/default.nix
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2017-09-10 07:35:28 +0200
committeraszlig <aszlig@redmoonstudios.org>2017-09-10 07:35:28 +0200
commit5402b030e2cc78e510414b4604d9528afbec43d2 (patch)
treec2734bc0b119a5782372317755b0eaef1d211648 /pkgs/games/default.nix
parent02dcea750b493cbf3b5ee918f338018725c29e17 (diff)
pkgs/games: Inline base-module.nix
This is such a short expression that really shouldn't belong in its own
file, so that everything we want to know is there in default.nix.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'pkgs/games/default.nix')
-rw-r--r--pkgs/games/default.nix12
1 files changed, 11 insertions, 1 deletions
diff --git a/pkgs/games/default.nix b/pkgs/games/default.nix
index 9222be86..cef568cf 100644
--- a/pkgs/games/default.nix
+++ b/pkgs/games/default.nix
@@ -17,10 +17,20 @@ let
     }
   '' else configFilePath;
 
+  baseModule = { lib, ... }: {
+    options = {
+      packages = lib.mkOption {
+        type = lib.types.attrsOf lib.types.unspecified;
+        default = {};
+        description = "Available collections of games.";
+      };
+    };
+  };
+
 in (pkgs.lib.evalModules {
   modules = [
     (if config == null then configFilePath else config)
-    ./base-module.nix ./humblebundle ./steam ./itch
+    baseModule ./humblebundle ./steam ./itch
     { config._module.args.pkgs = pkgs; }
   ];
 }).config.packages