Add API_TOKEN and update git url

pull/19/head
Inex Code 2021-11-17 19:37:35 +02:00
parent d3bbd948e1
commit b158c158f9
1 changed files with 4 additions and 1 deletions

View File

@ -10,7 +10,7 @@ makeConf() {
# NB <<"EOF" quotes / $ ` in heredocs, <<EOF does not
mkdir -p /etc/nixos
git clone https://git.selfprivacy.org/ilchub/selfprivacy-nixos-config.git /etc/nixos
git clone https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git /etc/nixos
# Prevent grep for sending error code 1 (and halting execution) when no lines are selected : https://www.unix.com/man-page/posix/1P/grep
local IFS=$'\n'
@ -127,6 +127,9 @@ EOF
cat > /etc/nixos/userdata/userdata.json << EOF
{
"api": {
"token": "$API_TOKEN"
},
"backblaze": {
"accountId": "$BACKBLAZE_KEY_ID",
"accountKey": "$BACKBLAZE_ACCOUNT_KEY",