deploy script fixes

This commit is contained in:
kat witch 2021-03-25 04:27:47 +00:00
parent 2130bc297b
commit 323322f339
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72
2 changed files with 3 additions and 4 deletions

View file

@ -12,7 +12,7 @@ with pkgs.lib;
}
${concatMapStrings (host: ''
echo "deploying ${host.config.networking.hostName}..."
${host.config.system.build.deployScript} $1 &
${host.config.system.build.deployScript}
PID_LIST+=" $!"
'') hosts}
# FIXME: remove jobs from PIDLIST once they finish

View file

@ -11,14 +11,13 @@ let
}
cat > ${file.path}
chmod ${file.mode} ${file.path}
chown ${file.owner}:${file.group} ${file.path}"''
chown ${file.owner}:${file.group} ${file.path}"''
+ (if file.source != null then ''
< ${toString file.source}
'' else ''
<<${if hasPrefix "__FUCKERY__" file.text then "EOF" else "'EOF'"}
${removePrefix "__FUCKERY__" file.text}
EOF
'')) (attrValues config.secrets.files);
EOF'')) (attrValues config.secrets.files);
in {
options = {
deploy = {