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

@ -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 = {