mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
Cursed refactor.
This commit is contained in:
parent
20b4bafa85
commit
5845debc95
83 changed files with 1000 additions and 804 deletions
|
|
@ -1,9 +1,9 @@
|
|||
{ pkgs, hosts, profiles }:
|
||||
{ pkgs, hosts, groups }:
|
||||
|
||||
with pkgs.lib;
|
||||
|
||||
(mapAttrs (name: hosts:
|
||||
pkgs.writeScript "deploy-profile-${name}" ''
|
||||
pkgs.writeScript "deploy-group-${name}" ''
|
||||
#!${pkgs.runtimeShell}
|
||||
export PATH=
|
||||
${concatMapStrings (host: ''
|
||||
|
|
@ -14,5 +14,5 @@ with pkgs.lib;
|
|||
# FIXME: remove jobs from PIDLIST once they finish
|
||||
trap "kill $PID_LIST" SIGINT
|
||||
wait $PID_LIST
|
||||
'') profiles)
|
||||
'') groups)
|
||||
// (mapAttrs (name: host: host.config.system.build.deployScript) hosts)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue