forked from mirrors_public/oddlama_nix-config
refactor: modularize topology config
This commit is contained in:
parent
ac18f2d07d
commit
621d725af3
6 changed files with 104 additions and 12 deletions
|
@ -1,2 +1,12 @@
|
|||
{renderer ? "d2", ...} @ attrs:
|
||||
import ./renderers/${renderer} attrs
|
||||
inputs: {
|
||||
pkgs,
|
||||
modules ? [],
|
||||
}:
|
||||
inputs.nixpkgs.lib.evalModules {
|
||||
prefix = ["topology"];
|
||||
modules = [./modules] ++ modules;
|
||||
specialArgs = {
|
||||
modulesPath = builtins.toString ./modules;
|
||||
inherit pkgs;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue