no need to use path in flake.nix

This commit is contained in:
Daylin Morgan 2024-02-19 12:24:03 -06:00
parent 952d57f118
commit 575b475988
Signed by: daylin
GPG key ID: C1E52E7DD81DF79F
2 changed files with 2 additions and 3 deletions

View file

@ -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 {};
};

View file

@ -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