mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-10 04:49:19 -08:00
nixdirfmt
This commit is contained in:
parent
f39ede8001
commit
a7eb2e7a6f
8 changed files with 59 additions and 46 deletions
|
|
@ -2,18 +2,21 @@
|
|||
|
||||
with pkgs.lib;
|
||||
|
||||
(mapAttrs (name: hosts:
|
||||
''
|
||||
#!${pkgs.runtimeShell}
|
||||
export PATH=
|
||||
nix build --no-link ${concatMapStringsSep " " (host: builtins.unsafeDiscardStringContext host.config.system.build.toplevel.drvPath) hosts}
|
||||
${concatMapStrings (host: ''
|
||||
echo "deploying ${host.config.networking.hostName}..."
|
||||
${host.config.system.build.deployScript} $1 &
|
||||
PID_LIST+=" $!"
|
||||
'') hosts}
|
||||
# FIXME: remove jobs from PIDLIST once they finish
|
||||
trap "kill $PID_LIST" SIGINT
|
||||
wait $PID_LIST
|
||||
'') groups)
|
||||
(mapAttrs (name: hosts: ''
|
||||
#!${pkgs.runtimeShell}
|
||||
export PATH=
|
||||
nix build --no-link ${
|
||||
concatMapStringsSep " " (host:
|
||||
builtins.unsafeDiscardStringContext
|
||||
host.config.system.build.toplevel.drvPath) hosts
|
||||
}
|
||||
${concatMapStrings (host: ''
|
||||
echo "deploying ${host.config.networking.hostName}..."
|
||||
${host.config.system.build.deployScript} $1 &
|
||||
PID_LIST+=" $!"
|
||||
'') hosts}
|
||||
# FIXME: remove jobs from PIDLIST once they finish
|
||||
trap "kill $PID_LIST" SIGINT
|
||||
wait $PID_LIST
|
||||
'') groups)
|
||||
// (mapAttrs (name: host: host.config.system.build.deployScript) hosts)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue