mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
nixdirfmt, vim fixes (sway, notmuch on systems)
This commit is contained in:
parent
dd8758c8bc
commit
f510d05c8f
6 changed files with 54 additions and 48 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue