From 0a45ea3f83abbccbb0100c5526c932a8d4141162 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kier=C3=A1n=20Meinhardt?= Date: Fri, 9 Jun 2023 13:37:20 +0200 Subject: flake: export top level krebs modules via nixosModules --- flake.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/flake.nix b/flake.nix index 8f3befbc4..c5e943e80 100644 --- a/flake.nix +++ b/flake.nix @@ -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; -- cgit v1.2.3