mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-11-05 01:53:15 -06:00
add consistent buildHosts
function
This commit is contained in:
parent
ce0fb9a689
commit
b2f3077c7a
2 changed files with 5 additions and 2 deletions
|
@ -29,10 +29,10 @@
|
|||
|
||||
outputs = inputs @ {nixpkgs, ...}: let
|
||||
lib = import ./lib {inherit inputs nixpkgs;};
|
||||
inherit (lib) findModules mapHosts buildOizys;
|
||||
inherit (lib) findModules buildHosts buildOizys;
|
||||
in {
|
||||
nixosModules = findModules ./modules;
|
||||
nixosConfigurations = mapHosts ./hosts;
|
||||
nixosConfigurations = buildHosts {};
|
||||
packages = buildOizys {};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -45,6 +45,9 @@ in rec {
|
|||
(name: _: mkSystem name)
|
||||
(readDir dir);
|
||||
|
||||
|
||||
buildHosts = _: mapHosts ../hosts;
|
||||
|
||||
findModules = modulesPath: listToAttrs (findModulesList modulesPath);
|
||||
# https://github.com/balsoft/nixos-config/blob/73cc2c3a8bb62a9c3980a16ae70b2e97af6e1abd/flake.nix#L109-L120
|
||||
findModulesList = dir:
|
||||
|
|
Loading…
Reference in a new issue