mirror of
https://github.com/oddlama/nix-config.git
synced 2025-10-10 14:50:40 +02:00
refactor: restructure topology
This commit is contained in:
parent
fd0069c626
commit
ac18f2d07d
6 changed files with 9 additions and 3 deletions
|
@ -1 +1,2 @@
|
|||
import ./render.nix
|
||||
{renderer ? "d2", ...} @ attrs:
|
||||
import ./renderers/${renderer} attrs
|
||||
|
|
0
topology/enrichment/systemd.nix
Normal file
0
topology/enrichment/systemd.nix
Normal file
0
topology/enrichment/wireguard.nix
Normal file
0
topology/enrichment/wireguard.nix
Normal file
5
topology/renderers/d2/default.nix
Normal file
5
topology/renderers/d2/default.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{pkgs, ...} @ attrs:
|
||||
pkgs.runCommand "build-d2-topology" {} ''
|
||||
mkdir -p $out
|
||||
cp ${import ./network.nix attrs} $out/network.d2
|
||||
''
|
|
@ -1,8 +1,7 @@
|
|||
{
|
||||
pkgs,
|
||||
# deadnix: skip
|
||||
renderer ? "graphviz",
|
||||
nixosConfigurations,
|
||||
...
|
||||
}: let
|
||||
inherit
|
||||
(pkgs.lib)
|
Loading…
Add table
Add a link
Reference in a new issue