Hotfix userdata deployment

This commit is contained in:
inex 2021-11-18 19:24:49 +02:00
parent a5452397ec
commit 74bbd61063

View file

@ -21,7 +21,48 @@ makeConf() {
done
local network_import=""
[[ -n "$doNetConf" ]] && network_import="./networking.nix # generated at runtime by nixos-infect"
cat > /etc/nixos/userdata/userdata.json << EOF
{
"api": {
"token": "$API_TOKEN"
},
"backblaze": {
"accountId": "$BACKBLAZE_KEY_ID",
"accountKey": "$BACKBLAZE_ACCOUNT_KEY",
"bucket": "$BACKBLAZE_BUCKET_NAME"
},
"bitwarden": {
"enable": true
},
"cloudflare": {
"apiKey": "$CF_TOKEN"
},
"databasePassword": "$DB_PASSWORD",
"domain": "$DOMAIN",
"hashedMasterPassword": "$HASHED_PASSWORD",
"hostname": "$DOMAIN",
"nextcloud": {
"enable": true,
"adminPassword": "$PASSWORD",
"databasePassword": "$PASSWORD"
},
"gitea": {
"enable": true
},
"jitsi": {
"enable": true
},
"ocserv": {
"enable": true
},
"pleroma": {
"enable": true
},
"timezone": "Europe/Uzhgorod",
"resticPassword": "$PASSWORD",
"username": "$LUSER"
}
EOF
if isEFI; then
bootcfg=$(cat << EOF
@ -124,49 +165,6 @@ EOF
'';
}
EOF
cat > /etc/nixos/userdata/userdata.json << EOF
{
"api": {
"token": "$API_TOKEN"
},
"backblaze": {
"accountId": "$BACKBLAZE_KEY_ID",
"accountKey": "$BACKBLAZE_ACCOUNT_KEY",
"bucket": "$BACKBLAZE_BUCKET_NAME"
},
"bitwarden": {
"enable": true
},
"cloudflare": {
"apiKey": "$CF_TOKEN"
},
"databasePassword": "$DB_PASSWORD",
"domain": "$DOMAIN",
"hashedMasterPassword": "$HASHED_PASSWORD",
"hostname": "$DOMAIN",
"nextcloud": {
"enable": true,
"adminPassword": "$PASSWORD",
"databasePassword": "$PASSWORD"
},
"gitea": {
"enable": true
},
"jitsi": {
"enable": true
},
"ocserv": {
"enable": true
},
"pleroma": {
"enable": true
},
"timezone": "Europe/Uzhgorod",
"resticPassword": "$PASSWORD",
"username": "$LUSER"
}
EOF
}
makeSwap() {