mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-22 10:10:45 -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
|
outputs = inputs @ {nixpkgs, ...}: let
|
||||||
lib = import ./lib {inherit inputs nixpkgs;};
|
lib = import ./lib {inherit inputs nixpkgs;};
|
||||||
inherit (lib) findModules mapHosts buildOizys;
|
inherit (lib) findModules buildHosts buildOizys;
|
||||||
in {
|
in {
|
||||||
nixosModules = findModules ./modules;
|
nixosModules = findModules ./modules;
|
||||||
nixosConfigurations = mapHosts ./hosts;
|
nixosConfigurations = buildHosts {};
|
||||||
packages = buildOizys {};
|
packages = buildOizys {};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,6 +45,9 @@ in rec {
|
||||||
(name: _: mkSystem name)
|
(name: _: mkSystem name)
|
||||||
(readDir dir);
|
(readDir dir);
|
||||||
|
|
||||||
|
|
||||||
|
buildHosts = _: mapHosts ../hosts;
|
||||||
|
|
||||||
findModules = modulesPath: listToAttrs (findModulesList modulesPath);
|
findModules = modulesPath: listToAttrs (findModulesList modulesPath);
|
||||||
# https://github.com/balsoft/nixos-config/blob/73cc2c3a8bb62a9c3980a16ae70b2e97af6e1abd/flake.nix#L109-L120
|
# https://github.com/balsoft/nixos-config/blob/73cc2c3a8bb62a9c3980a16ae70b2e97af6e1abd/flake.nix#L109-L120
|
||||||
findModulesList = dir:
|
findModulesList = dir:
|
||||||
|
|
Loading…
Reference in a new issue