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:
parent
fbab6415ca
commit
714dec1c33
6 changed files with 321 additions and 99 deletions
18
flake.nix
18
flake.nix
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue