mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-03-25 19:29:21 -07:00
style: reformat nixos example
@@ -41,18 +41,16 @@ See [Proxy Examples](https://github.com/dani-garcia/vaultwarden/wiki/Proxy-examp
|
|||||||
<summary>Example Config</summary><br/>
|
<summary>Example Config</summary><br/>
|
||||||
|
|
||||||
```nix
|
```nix
|
||||||
{pkgs,...}:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
services.bitwarden_rs = {
|
services.bitwarden_rs = {
|
||||||
enable = true;
|
enable = true;
|
||||||
backupDir = "/mnt/bitwarden";
|
backupDir = "/mnt/bitwarden";
|
||||||
|
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
WEB_VAULT_FOLDER = "${pkgs.bitwarden_rs-vault}/share/bitwarden_rs/vault";
|
WEB_VAULT_FOLDER = "${pkgs.bitwarden_rs-vault}/share/bitwarden_rs/vault";
|
||||||
WEB_VAULT_ENABLED = true;
|
WEB_VAULT_ENABLED = true;
|
||||||
LOG_FILE = "/var/log/bitwarden";
|
LOG_FILE = "/var/log/bitwarden";
|
||||||
WEBSOCKET_ENABLED= true;
|
WEBSOCKET_ENABLED = true;
|
||||||
WEBSOCKET_ADDRESS = "0.0.0.0";
|
WEBSOCKET_ADDRESS = "0.0.0.0";
|
||||||
WEBSOCKET_PORT = 3012;
|
WEBSOCKET_PORT = 3012;
|
||||||
SIGNUPS_VERIFY = true;
|
SIGNUPS_VERIFY = true;
|
||||||
@@ -66,7 +64,7 @@ See [Proxy Examples](https://github.com/dani-garcia/vaultwarden/wiki/Proxy-examp
|
|||||||
SMTP_FROM_NAME = "Bitwarden_RS";
|
SMTP_FROM_NAME = "Bitwarden_RS";
|
||||||
SMTP_PORT = 587;
|
SMTP_PORT = 587;
|
||||||
SMTP_SSL = true;
|
SMTP_SSL = true;
|
||||||
SMTP_USERNAME= (import /etc/nixos/secret/bitwarden.nix).SMTP_USERNAME;
|
SMTP_USERNAME = (import /etc/nixos/secret/bitwarden.nix).SMTP_USERNAME;
|
||||||
SMTP_PASSWORD = (import /etc/nixos/secret/bitwarden.nix).SMTP_PASSWORD;
|
SMTP_PASSWORD = (import /etc/nixos/secret/bitwarden.nix).SMTP_PASSWORD;
|
||||||
SMTP_TIMEOUT = 15;
|
SMTP_TIMEOUT = 15;
|
||||||
ROCKET_PORT = 8812;
|
ROCKET_PORT = 8812;
|
||||||
@@ -76,7 +74,6 @@ See [Proxy Examples](https://github.com/dani-garcia/vaultwarden/wiki/Proxy-examp
|
|||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
bitwarden_rs-vault
|
bitwarden_rs-vault
|
||||||
];
|
];
|
||||||
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user