mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-11-05 01:53:15 -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";
|
||||
|
||||
|
||||
inputs.inputs.url = "github:daylinmorgan/oizys?dir=inputs";
|
||||
|
||||
outputs = {
|
||||
|
@ -16,7 +15,7 @@
|
|||
};
|
||||
inherit (lib) findModules buildHosts buildOizys;
|
||||
in {
|
||||
nixosModules = findModules ./modules;
|
||||
nixosModules = findModules {};
|
||||
nixosConfigurations = buildHosts {};
|
||||
packages = buildOizys {};
|
||||
};
|
||||
|
|
|
@ -47,7 +47,7 @@ in rec {
|
|||
mapHosts = dir: mapAttrs (name: _: mkSystem name) (readDir dir);
|
||||
buildHosts = _: mapHosts ../hosts;
|
||||
|
||||
findModules = modulesPath: listToAttrs (findModulesList modulesPath);
|
||||
findModules = _: listToAttrs (findModulesList ../modules);
|
||||
# https://github.com/balsoft/nixos-config/blob/73cc2c3a8bb62a9c3980a16ae70b2e97af6e1abd/flake.nix#L109-L120
|
||||
findModulesList = dir:
|
||||
concatLists (attrValues (mapAttrs
|
||||
|
|
Loading…
Reference in a new issue