From 677bcd924099b1f01a2a9bc29f62112c720ee760 Mon Sep 17 00:00:00 2001 From: aszlig Date: Mon, 16 May 2016 23:06:21 +0200 Subject: default.nix: Clean up and preperly name space lib We want to have lib.vuizvui instead of polluting the namespace with our functions. Apart from that the default.nix was broken because of 49dc58c, which factored away the argument from . Signed-off-by: aszlig --- default.nix | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'default.nix') diff --git a/default.nix b/default.nix index d821b75e..86e58376 100644 --- a/default.nix +++ b/default.nix @@ -1,15 +1,13 @@ { system ? builtins.currentSystem, ... }@args: -with (import (import ./nixpkgs-path.nix) { inherit system; }).lib; - { - machines = import ./machines { - inherit system; - }; + machines = import ./machines; pkgs = import ./pkgs { pkgs = import (import ./nixpkgs-path.nix) args; }; - lib = import "${import ./nixpkgs-path.nix}/lib" // import ./lib; + lib = import "${import ./nixpkgs-path.nix}/lib" // { + vuizvui = import ./lib; + }; } -- cgit 1.4.1