mirror of
https://github.com/oddlama/nix-config.git
synced 2025-10-10 23:00:39 +02:00
feat: add microvm module to simplify setup
This commit is contained in:
parent
72a34cac01
commit
d842d25eb9
8 changed files with 99 additions and 28 deletions
11
flake.nix
11
flake.nix
|
@ -105,7 +105,16 @@
|
|||
};
|
||||
|
||||
colmena = import ./nix/colmena.nix inputs;
|
||||
inherit ((colmena.lib.makeHive self.colmena).introspect (x: x)) nodes;
|
||||
colmenaNodes = ((colmena.lib.makeHive self.colmena).introspect (x: x)).nodes;
|
||||
microvmNodes =
|
||||
nixpkgs.lib.concatMapAttrs (
|
||||
nodeName: nodeAttrs:
|
||||
nixpkgs.lib.mapAttrs'
|
||||
(n: nixpkgs.lib.nameValuePair "${nodeName}-microvm-${n}")
|
||||
(self.colmenaNodes.${nodeName}.config.microvm.vms or {})
|
||||
)
|
||||
self.colmenaNodes;
|
||||
nodes = self.colmenaNodes // self.microvmNodes;
|
||||
|
||||
# Collect installer packages
|
||||
inherit
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue