forked from Fediversity/Fediversity
Add a default
deployment containing everything
This commit is contained in:
parent
9c85431a22
commit
8fa7bd4df5
1 changed files with 6 additions and 3 deletions
|
@ -6,7 +6,7 @@
|
|||
}:
|
||||
|
||||
let
|
||||
inherit (lib) mapAttrs;
|
||||
inherit (lib) attrValues concatLists mapAttrs;
|
||||
inherit (lib.attrsets) genAttrs;
|
||||
|
||||
makeResource =
|
||||
|
@ -22,6 +22,9 @@ let
|
|||
procolixVm.name = vmName;
|
||||
};
|
||||
|
||||
addDefaultDeployment =
|
||||
deployments: deployments // { default = concatLists (attrValues deployments); };
|
||||
|
||||
makeDeployments = mapAttrs (
|
||||
_: vmNames:
|
||||
{ providers, ... }:
|
||||
|
@ -33,7 +36,7 @@ let
|
|||
|
||||
in
|
||||
{
|
||||
nixops4Deployments = makeDeployments {
|
||||
nixops4Deployments = makeDeployments (addDefaultDeployment {
|
||||
git = [
|
||||
"vm02116"
|
||||
"fedi300"
|
||||
|
@ -43,5 +46,5 @@ in
|
|||
"vm02179"
|
||||
"vm02186"
|
||||
];
|
||||
};
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue