From d4c45fd86b92420d76e6440422dcff83055eec54 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Thu, 1 Dec 2022 08:21:58 +0800 Subject: [PATCH] hosts/plover: enable TCP/IP connection and fix database service --- hosts/plover/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hosts/plover/default.nix b/hosts/plover/default.nix index 9b0438e6..f2e4accf 100644 --- a/hosts/plover/default.nix +++ b/hosts/plover/default.nix @@ -103,13 +103,14 @@ in services.postgresql = { enable = true; package = pkgs.postgresql_15; + enableTCPIP = true; # There's no database and user checks for Vaultwarden service. ensureDatabases = [ vaultwardenDbName ]; ensureUsers = [ { name = vaultwardenUser; - ensurePermissions = { "DATABASE ${vaultwardenDbName}" = "ALL PRIVILEGES"; }; + ensurePermissions."DATABASE ${vaultwardenDbName}" = "ALL PRIVILEGES"; } ]; }; @@ -223,7 +224,7 @@ in # Configuring the database. Take note it is required to create a password # for the user. - DATABASE_URL = "postgresql://${vaultwardenUser}:thisismadnessbutsomeonewilljustseethisanyways32342whaaaaaatthebloooooodyhell49@localhost/${vaultwardenDbName}"; + DATABASE_URL = "postgresql://${vaultwardenUser}@/${vaultwardenDbName}"; }; };