add drive paths, update vaultwarden.nix in prep for scalpel
diff --git a/modules/vaultwarden.nix b/modules/vaultwarden.nix
index c02d2f1..ca7893e 100644
--- a/modules/vaultwarden.nix
+++ b/modules/vaultwarden.nix
@@ -1,4 +1,4 @@
-{ pkgs, ... }: {
+{ pkgs, drive_paths, ... }: {
environment.systemPackages = with pkgs; [ vaultwarden ];
services.vaultwarden.enable = true;
@@ -17,20 +17,20 @@
SIGNUPS_DOMAINS_WHITELIST="clicks.codes,coded.codes,thecoded.prof,starrysky.fyi,hopescaramels.com,pinea.dev";
# TODO: Set folder locations for storing data.
- # RSA_KEY_FILENAME=data/rsa_key
- # ICON_CACHE_FOLDER=data/icon_cache
- # ATTACHMENTS_FOLDER=data/attachments
- # SENDS_FOLDER=data/sends
- # TMP_FOLDER=data/tmp
+ RSA_KEY_FILENAME="${drive_paths.root}/bitwarden/rsa_key";
+ ICON_CACHE_FOLDER="${drive_paths.root}/bitwarden/icon_cache";
+ ATTACHMENTS_FOLDER="${drive_paths.External4000HDD}/bitwarden/attachments";
+ SENDS_FOLDER="${drive_paths.External4000HDD}/bitwarden/sends";
+ TMP_FOLDER="${drive_paths.External4000HDD}/bitwarden/tmp";
DISABLE_2FA_REMEMBER=true;
# Admin Account
- ADMIN_TOKEN="$argon2id$v=19$m=100,t=2,p=10$dWVoN1llNTFpVHRXZXNicA$oXSZOeoCRxgA6aXBmRj0Ow";
+ ADMIN_TOKEN="!!ADMIN_TOKEN!!";
# Database Settings
- DATABASE_URL="postgresql://FILL_ME_IN:FILL_ME_IN@127.0.0.1:FILL_ME_IN/bitwarden";
+ DATABASE_URL="postgresql://bitwarden:!!clicks_bitwarden_db_secret!!@127.0.0.1:${}/bitwarden";
# Mail Settings
@@ -41,18 +41,18 @@
SMTP_PORT = 587;
SMTP_USERNAME="FILL_ME_IN";
- SMTP_PASSWORD="FILL_ME_IN";
+ SMTP_PASSWORD="!!SMTP_PASSWORD!!";
REQUIRE_DEVICE_EMAIL=true;
# YubiKey Settings
YUBICO_CLIENT_ID="89788";
- YUBICO_SECRET_KEY="FILL_ME_IN";
+ YUBICO_SECRET_KEY="!!YUBICO_SECRET_KEY!!";
# TODO: Buy a license
# HIBP Settings
- # HIBP_API_KEY="FILL_ME_IN";
+ # HIBP_API_KEY="!!HIBP_API_KEY!!";
};
}
\ No newline at end of file