infrastructure/default.nix
2021-05-19 12:34:24 +01:00

28 lines
716 B
Nix

rec {
sources = import ./nix/sources.nix;
pkgs = import ./pkgs { inherit sources; };
modList = import ./lib/modules.nix;
profiles = modList {
modulesDir = ./profiles;
};
users = modList { modulesDir = ./users; };
inherit (import ./lib/hosts.nix {
inherit pkgs sources profiles users;
inherit (deploy) target;
})
hosts targets;
inherit (pkgs) lib;
runners = import ./runners.nix { inherit lib; inherit (deploy) target; };
sourceCache = toString (lib.mapAttrsToList(sourceName: value: value.outPath) (removeAttrs (import sources.nix-hexchen {}).sources [ "__functor" ]));
deploy = import ./lib/deploy.nix {
inherit pkgs sources;
inherit hosts targets;
};
}