default: unclutter by using a recursive attrset
This commit is contained in:
parent
fe5a626891
commit
3f280ae6ba
1 changed files with 4 additions and 6 deletions
10
default.nix
10
default.nix
|
@ -1,9 +1,7 @@
|
||||||
let
|
rec {
|
||||||
sources = import ./nix/sources.nix;
|
sources = import ./nix/sources.nix;
|
||||||
pkgs = import ./pkgs {};
|
pkgs = import ./pkgs {};
|
||||||
hosts = import (sources.nix-hexchen + "/lib/hosts.nix") {inherit pkgs; hostsDir = ./hosts; commonImports = [./common]; pkgsPath = ./pkgs; };
|
inherit (pkgs) lib;
|
||||||
in {
|
inherit (import (sources.nix-hexchen + "/lib/hosts.nix") { inherit pkgs; hostsDir = ./hosts; commonImports = [./common]; pkgsPath = ./pkgs; }) hosts groups;
|
||||||
inherit sources pkgs;
|
deploy = import (sources.nix-hexchen + "/lib/deploy.nix") { inherit pkgs hosts groups; };
|
||||||
inherit (hosts) hosts groups;
|
|
||||||
deploy = import (sources.nix-hexchen + "/lib/deploy.nix") { inherit pkgs; inherit (hosts) hosts groups; };
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue