mirror of
https://github.com/daylinmorgan/oizys.git
synced 2025-01-21 22:57:32 -06:00
no need to use path in flake.nix
This commit is contained in:
parent
952d57f118
commit
575b475988
2 changed files with 2 additions and 3 deletions
|
@ -1,7 +1,6 @@
|
||||||
{
|
{
|
||||||
description = "nix begat oizys";
|
description = "nix begat oizys";
|
||||||
|
|
||||||
|
|
||||||
inputs.inputs.url = "github:daylinmorgan/oizys?dir=inputs";
|
inputs.inputs.url = "github:daylinmorgan/oizys?dir=inputs";
|
||||||
|
|
||||||
outputs = {
|
outputs = {
|
||||||
|
@ -16,7 +15,7 @@
|
||||||
};
|
};
|
||||||
inherit (lib) findModules buildHosts buildOizys;
|
inherit (lib) findModules buildHosts buildOizys;
|
||||||
in {
|
in {
|
||||||
nixosModules = findModules ./modules;
|
nixosModules = findModules {};
|
||||||
nixosConfigurations = buildHosts {};
|
nixosConfigurations = buildHosts {};
|
||||||
packages = buildOizys {};
|
packages = buildOizys {};
|
||||||
};
|
};
|
||||||
|
|
|
@ -47,7 +47,7 @@ in rec {
|
||||||
mapHosts = dir: mapAttrs (name: _: mkSystem name) (readDir dir);
|
mapHosts = dir: mapAttrs (name: _: mkSystem name) (readDir dir);
|
||||||
buildHosts = _: mapHosts ../hosts;
|
buildHosts = _: mapHosts ../hosts;
|
||||||
|
|
||||||
findModules = modulesPath: listToAttrs (findModulesList modulesPath);
|
findModules = _: listToAttrs (findModulesList ../modules);
|
||||||
# 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:
|
||||||
concatLists (attrValues (mapAttrs
|
concatLists (attrValues (mapAttrs
|
||||||
|
|
Loading…
Reference in a new issue