diff options
author | KierĂ¡n Meinhardt <kmein@posteo.de> | 2023-06-09 13:37:20 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2023-06-21 14:47:04 +0200 |
commit | a59af9e4ca18660d684c376a6ffa70d6a168c9c9 (patch) | |
tree | 4e9829ec5e7665a6954599a2eb2e2c9853edc695 | |
parent | e174ef53caafbcee1e8a2ee83d6195f97afb9388 (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; |