mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2026-04-14 13:19:09 +02:00
feat[server]: storage migration finished
This commit is contained in:
parent
c6539ed484
commit
3422a39da5
94 changed files with 1963 additions and 1626 deletions
|
|
@ -176,7 +176,7 @@
|
|||
configurationsPerArch = type: minimal: mkConfigurationsPerArch type minimal;
|
||||
|
||||
in
|
||||
{
|
||||
rec {
|
||||
nixosConfigurations = configurationsPerArch "nixos" false;
|
||||
nixosConfigurationsMinimal = configurationsPerArch "nixos" true;
|
||||
darwinConfigurations = configurationsPerArch "darwin" false;
|
||||
|
|
@ -198,6 +198,17 @@
|
|||
// config.darwinConfigurations
|
||||
// config.guestConfigurations;
|
||||
|
||||
guestResources = lib.mapAttrs
|
||||
(name: _:
|
||||
let
|
||||
f = arg: lib.foldr (base: acc: base + acc) 0 (map (node: nodes."${name}-${node}".config.microvm.${arg}) (builtins.attrNames nodes.${name}.config.guests));
|
||||
in
|
||||
{
|
||||
mem = f "mem";
|
||||
vcpu = f "vcpu";
|
||||
})
|
||||
nodes;
|
||||
|
||||
"@" = lib.mapAttrs (_: v: v.config.system.build.toplevel) config.nodes;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue