From a7ab8dcf88c29fdc0b76c57dc2c4e33d02bf8a3e Mon Sep 17 00:00:00 2001 From: Jake Hamilton Date: Sat, 8 Jun 2024 05:28:59 -0700 Subject: [PATCH] fix: add missing non-flake entry --- foundation/README.md | 5 ++++- foundation/default.nix | 14 ++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 foundation/default.nix 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