1
1
Fork 1
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:
oddlama 2024-03-14 15:55:12 +01:00
parent fd0069c626
commit ac18f2d07d
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
6 changed files with 9 additions and 3 deletions

View file

@ -13,6 +13,7 @@
];
boot.mode = "bios";
users.groups.acme.members = ["nginx"];
services.nginx.enable = true;
services.nginx.recommendedSetup = true;

View file

@ -1 +1,2 @@
import ./render.nix
{renderer ? "d2", ...} @ attrs:
import ./renderers/${renderer} attrs

View file

View file

View file

@ -0,0 +1,5 @@
{pkgs, ...} @ attrs:
pkgs.runCommand "build-d2-topology" {} ''
mkdir -p $out
cp ${import ./network.nix attrs} $out/network.d2
''

View file

@ -1,8 +1,7 @@
{
pkgs,
# deadnix: skip
renderer ? "graphviz",
nixosConfigurations,
...
}: let
inherit
(pkgs.lib)