summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/bitwarden.nix
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2021-12-20 21:24:11 +0100
committerlassulus <lassulus@lassul.us>2021-12-20 21:24:11 +0100
commitd77dd95689a33793c88799ce9f616eb21640f1a8 (patch)
treeb69ae9b1deba72996126a9d6c75008f8696f0d0f /makefu/2configs/bitwarden.nix
parent5b71cbae401da33c46401eb09196bedad47dadaa (diff)
parent26e0cca2e22fde8ae150354d949d9cfeb8b1833b (diff)
Merge remote-tracking branch 'gum/master'
Diffstat (limited to 'makefu/2configs/bitwarden.nix')
-rw-r--r--makefu/2configs/bitwarden.nix14
1 files changed, 6 insertions, 8 deletions
diff --git a/makefu/2configs/bitwarden.nix b/makefu/2configs/bitwarden.nix
index 7e317e596..92c1c4e0e 100644
--- a/makefu/2configs/bitwarden.nix
+++ b/makefu/2configs/bitwarden.nix
@@ -2,7 +2,7 @@
let
port = 8812;
in {
- services.bitwarden_rs = {
+ services.vaultwarden = {
enable = true;
dbBackend = "postgresql";
config.signups_allowed = false;
@@ -13,17 +13,15 @@ in {
config.websocket_enabled = true;
};
- systemd.services.bitwarden_rs.after = [ "postgresql.service" ];
+ systemd.services.vaultwarden.after = [ "postgresql.service" ];
services.postgresql = {
enable = true;
ensureDatabases = [ "bitwarden" ];
- ensureUsers = [ { name = "bitwarden_rs"; ensurePermissions."DATABASE bitwarden" = "ALL PRIVILEGES"; } ];
- #initialScript = pkgs.writeText "postgresql-init.sql" ''
- # CREATE DATABASE bitwarden;
- # CREATE USER bitwardenuser WITH PASSWORD '${dbPassword}';
- # GRANT ALL PRIVILEGES ON DATABASE bitwarden TO bitwardenuser;
- #'';
+ ensureUsers = [
+ { name = "bitwarden_rs"; ensurePermissions."DATABASE bitwarden" = "ALL PRIVILEGES"; }
+ { name = "vaultwarden"; ensurePermissions."DATABASE bitwarden" = "ALL PRIVILEGES"; }
+ ];
};
services.nginx.virtualHosts."bw.euer.krebsco.de" ={