about summary refs log tree commit diff
path: root/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'default.nix')
-rw-r--r--default.nix16
1 files changed, 16 insertions, 0 deletions
diff --git a/default.nix b/default.nix
new file mode 100644
index 00000000..c85ef72a
--- /dev/null
+++ b/default.nix
@@ -0,0 +1,16 @@
+{ system ? builtins.currentSystem, ... }@args:
+
+with (import <nixpkgs> { inherit system; }).lib;
+
+{
+  machines = mapAttrsRecursiveCond (m: !(m ? build)) (path: attrs:
+    attrs.build.config.system.build.toplevel
+  ) (import ./machines { inherit system; });
+
+  pkgs = import ./pkgs {
+    pkgs = import <nixpkgs> args;
+  };
+
+  # Inherit upstream lib until we have our own lib.
+  lib = import <nixpkgs/lib>;
+}