move deploy library

This commit is contained in:
Sean Buckley 2022-09-18 14:39:23 -04:00
parent 9d60e4c195
commit 7a3fa19df1

View file

@ -19,8 +19,6 @@
}) })
(builtins.readDir ./pkgs)); (builtins.readDir ./pkgs));
deploy = import lib/deploy.nix;
forAllSystems = f: nixpkgs.lib.genAttrs forAllSystems = f: nixpkgs.lib.genAttrs
[ "x86_64-linux" "aarch64-linux" ] [ "x86_64-linux" "aarch64-linux" ]
(system: f system); (system: f system);
@ -53,7 +51,10 @@
in in
{ {
lib = { inherit forAllSystems deploy; }; lib = {
inherit forAllSystems;
deploy = import lib/deploy.nix;
};
nixosModules = mods // { default.imports = builtins.attrValues mods; }; nixosModules = mods // { default.imports = builtins.attrValues mods; };