flake: export top level krebs modules via nixosModules
This commit is contained in:
parent
e174ef53ca
commit
a59af9e4ca
11
flake.nix
11
flake.nix
@ -21,6 +21,17 @@
|
|||||||
./krebs/1systems/hotdog/config.nix
|
./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 = {
|
kartei = {
|
||||||
hosts = self.nixosConfigurations.hotdog.config.krebs.hosts;
|
hosts = self.nixosConfigurations.hotdog.config.krebs.hosts;
|
||||||
users = self.nixosConfigurations.hotdog.config.krebs.users;
|
users = self.nixosConfigurations.hotdog.config.krebs.users;
|
||||||
|
Loading…
Reference in New Issue
Block a user