diff options
author | KierĂ¡n Meinhardt <kmein@posteo.de> | 2023-06-09 13:37:20 +0200 |
---|---|---|
committer | lassulus <git@lassul.us> | 2023-06-11 16:50:45 +0200 |
commit | 0a45ea3f83abbccbb0100c5526c932a8d4141162 (patch) | |
tree | 29c3387a22f4807e4a61f96a174ba98cecb2645d | |
parent | 9cc3eea82d60dc5ed9f4de7c15d63ee162e639fb (diff) |
flake: export top level krebs modules via nixosModules
-rw-r--r-- | flake.nix | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -21,6 +21,17 @@ ./krebs/1systems/hotdog/config.nix ]; }; + + nixosModules = + let + inherit (nixpkgs) lib; + in builtins.listToAttrs + (map + (name: {name = lib.removeSuffix ".nix" name; value = import (./krebs/3modules + "/${name}");}) + (lib.filter + (name: name != "default.nix" && !lib.hasPrefix "." name) + (lib.attrNames (builtins.readDir ./krebs/3modules)))); + kartei = { hosts = self.nixosConfigurations.hotdog.config.krebs.hosts; users = self.nixosConfigurations.hotdog.config.krebs.users; |