mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
tewi deployment
This commit is contained in:
parent
827d638f3a
commit
5d6c301a39
15 changed files with 84 additions and 1084 deletions
|
|
@ -93,11 +93,7 @@ with lib; {
|
|||
command =
|
||||
let
|
||||
main = (import ../.);
|
||||
nodes = main.network.nodes.nixos;
|
||||
targets = main.deploy.targets;
|
||||
enabledTargets = filterAttrs (_: v: v.enable) main.deploy.targets;
|
||||
enabledHosts = concatLists (mapAttrsToList (targetName: target: target.nodeNames) enabledTargets);
|
||||
filteredHosts = subtractLists [ "daiyousei" "shinmyoumaru" "medicine" ] enabledHosts;
|
||||
filteredHosts = [ "tewi" ];
|
||||
nodeBuildString = concatMapStringsSep " && " (node: "nix build -Lf . network.nodes.nixos.${node}.deploy.system -o result-${node} && nix-collect-garbage -d") filteredHosts;
|
||||
in
|
||||
''
|
||||
|
|
|
|||
|
|
@ -54,10 +54,7 @@
|
|||
jobs =
|
||||
let
|
||||
main = (import ../.);
|
||||
hosts = main.network.nodes.nixos;
|
||||
targets = main.deploy.targets;
|
||||
enabledTargets = filterAttrs (k: v: v.enable && k != "medicine") main.deploy.targets;
|
||||
enabledHosts = concatLists (mapAttrsToList (targetName: target: target.nodeNames) enabledTargets);
|
||||
enabledHosts = [ "tewi" ];
|
||||
in
|
||||
mapAttrs' (k: nameValuePair "${k}") (genAttrs enabledHosts (host: {
|
||||
tasks.${host}.inputs = channels.nixfiles.network.nodes.nixos.${host}.deploy.system;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue