mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
nixdirfmt!
This commit is contained in:
parent
bfdd94bf7e
commit
ad1faf2f24
18 changed files with 151 additions and 166 deletions
|
|
@ -2,15 +2,16 @@
|
|||
|
||||
with lib;
|
||||
|
||||
let cfg = config.meta.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}" << 'EOF'
|
||||
${file.text}
|
||||
EOF
|
||||
'') (attrValues config.secrets.files);
|
||||
let
|
||||
cfg = config.meta.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}" << 'EOF'
|
||||
${file.text}
|
||||
EOF
|
||||
'') (attrValues config.secrets.files);
|
||||
in {
|
||||
options = {
|
||||
meta.deploy = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue