1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-10 14:50:40 +02:00

chore: play with topology generation in graphviz

This commit is contained in:
oddlama 2024-01-08 03:03:59 +01:00
parent fbab6415ca
commit 714dec1c33
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
6 changed files with 321 additions and 99 deletions

View file

@ -152,18 +152,6 @@
nixosConfigurationsMinimal
;
# XXX: WIP: only testing
d2diag = let
inherit
(nixpkgs.lib)
attrValues
concatLines
;
in
self.pkgs.x86_64-linux.writeText "test.d2" (
concatLines (map (x: x.config.d2diag.text) (attrValues self.nixosConfigurations))
);
# All nixosSystem instanciations are collected here, so that we can refer
# to any system via nodes.<name>
nodes = self.nixosConfigurations // self.guestConfigs;
@ -195,6 +183,12 @@
];
};
# XXX: WIP: only testing
topology = import ./generate-topology.nix {
inherit pkgs;
nixosConfigurations = self.nodes;
};
# For each major system, we provide a customized installer image that
# has ssh and some other convenience stuff preconfigured.
# Not strictly necessary for new setups.