mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-infect.git
synced 2024-11-22 12:01:27 +00:00
Merge pull request 'Add API_TOKEN and update git url' (#19) from inex/selfprivacy-nixos-infect:rolling into rolling
Reviewed-on: https://git.selfprivacy.org/ilchub/selfprivacy-nixos-infect/pulls/19
This commit is contained in:
commit
c20df85f42
|
@ -10,7 +10,7 @@ makeConf() {
|
||||||
# NB <<"EOF" quotes / $ ` in heredocs, <<EOF does not
|
# NB <<"EOF" quotes / $ ` in heredocs, <<EOF does not
|
||||||
mkdir -p /etc/nixos
|
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
|
# 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'
|
local IFS=$'\n'
|
||||||
|
@ -127,6 +127,9 @@ EOF
|
||||||
|
|
||||||
cat > /etc/nixos/userdata/userdata.json << EOF
|
cat > /etc/nixos/userdata/userdata.json << EOF
|
||||||
{
|
{
|
||||||
|
"api": {
|
||||||
|
"token": "$API_TOKEN"
|
||||||
|
},
|
||||||
"backblaze": {
|
"backblaze": {
|
||||||
"accountId": "$BACKBLAZE_KEY_ID",
|
"accountId": "$BACKBLAZE_KEY_ID",
|
||||||
"accountKey": "$BACKBLAZE_ACCOUNT_KEY",
|
"accountKey": "$BACKBLAZE_ACCOUNT_KEY",
|
||||||
|
|
Loading…
Reference in a new issue