mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-infect.git
synced 2024-11-22 03:51:27 +00:00
Hotfix userdata deployment
This commit is contained in:
parent
a5452397ec
commit
74bbd61063
86
nixos-infect
86
nixos-infect
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue