1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-11 07:10:39 +02:00

refactor: modularize topology config

This commit is contained in:
oddlama 2024-03-14 16:49:56 +01:00
parent ac18f2d07d
commit 621d725af3
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
6 changed files with 104 additions and 12 deletions

View file

@ -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;
};
}