nixdirfmt, vim fixes (sway, notmuch on systems)

This commit is contained in:
kat witch 2021-03-14 13:11:03 +00:00
parent dd8758c8bc
commit f510d05c8f
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72
6 changed files with 54 additions and 48 deletions

View file

@ -4,15 +4,19 @@ with lib;
let
cfg = config.deploy;
secretsScript = concatMapStrings (file: ''
ssh $NIX_SSHOPTS root@${cfg.ssh.host} "mkdir -p ${toString file.out.dir}
cat > ${file.path}
chmod ${file.mode} ${file.path}
chown ${file.owner}:${file.group} ${file.path}"'' + (if file.source != null then "< ${toString file.source}\n" else ''
<<'EOF'
${file.text}
EOF
'')) (attrValues config.secrets.files);
secretsScript = concatMapStrings (file:
''
ssh $NIX_SSHOPTS root@${cfg.ssh.host} "mkdir -p ${toString file.out.dir}
cat > ${file.path}
chmod ${file.mode} ${file.path}
chown ${file.owner}:${file.group} ${file.path}"''
+ (if file.source != null then ''
< ${toString file.source}
'' else ''
<<'EOF'
${file.text}
EOF
'')) (attrValues config.secrets.files);
in {
options = {
deploy = {