From ddf8c41e9107911d0979c2747791aca859dd0362 Mon Sep 17 00:00:00 2001 From: aszlig Date: Wed, 15 Apr 2015 17:44:49 +0200 Subject: Add a default.nix which servers as vuizvui root. In the end we want to have something like (import {}), which exports all stuff we need for building machines, packages, providing custom helper functions and much more. And all that by using a channel instead of setting NIX_PATH directly :-) Signed-off-by: aszlig --- default.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 default.nix (limited to 'default.nix') 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 { 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 args; + }; + + # Inherit upstream lib until we have our own lib. + lib = import ; +} -- cgit 1.4.1