diff --git a/foundation/README.md b/foundation/README.md index 749a2a3..31c6bd4 100644 --- a/foundation/README.md +++ b/foundation/README.md @@ -21,7 +21,10 @@ let url = "https://github.com/auxolotl/labs/archive/main.tar.gz"; sha256 = ""; }; - foundation = import "${labs}/foundation"; + foundation = import "${labs}/foundation" { + # Specifying a system is optional. By default it will use the current system. + system = "i686-linux"; + }; in # ... ``` diff --git a/foundation/default.nix b/foundation/default.nix new file mode 100644 index 0000000..8cede2c --- /dev/null +++ b/foundation/default.nix @@ -0,0 +1,14 @@ +{system ? builtins.currentSystem}: let + lib = import ./../lib; + + modules = import ./src; + + result = lib.modules.run { + modules = + (builtins.attrValues modules) + ++ [ + {config.aux.system = system;} + ]; + }; +in + result.config.exports.resolved