forked from fort-nix/nix-bitcoin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add rpc user and password as secrets
- Loading branch information
Showing
7 changed files
with
36 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
secrets/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
|
||
SECRETSFILE=secrets/secrets.nix | ||
|
||
if [ -e "$SECRETSFILE" ]; then | ||
echo $SECRETSFILE already exists | ||
exit 1 | ||
fi | ||
|
||
echo Installing apg through nix-env | ||
nix-env -i apg | ||
echo Creating bitcoin RPC password | ||
echo \{ >> $SECRETSFILE | ||
echo " bitcoinrpcpassword = \"$(apg -m 20 -x 20 -M Ncl -n 1)\";" >> $SECRETSFILE | ||
echo \} >> $SECRETSFILE | ||
echo Done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
if builtins.pathExists ./secrets/secrets.nix then import ./secrets/secrets.nix else { | ||
prophet-openvpn-config = ""; | ||
prophet-guest-openvpn-config = ""; | ||
centrallake-openvpn-config = ""; | ||
bower-openvpn-config = ""; | ||
unifi_password_ro = ""; | ||
alertmanager_smtp_pw = ""; | ||
alertmanager_pushover_user = ""; | ||
alertmanager_pushover_token = ""; | ||
mpd_pw = ""; | ||
mpd_icecast_pw = ""; | ||
github_token = ""; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters