From 9b68ac87d8ea575ba0a25c5916fcd6480b55a960 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kier=C3=A1n=20Meinhardt?= Date: Wed, 1 Dec 2021 12:03:55 +0100 Subject: [PATCH] chore(nextcloud): create password files --- configs/nextcloud.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/configs/nextcloud.nix b/configs/nextcloud.nix index 2665703..f75feb6 100644 --- a/configs/nextcloud.nix +++ b/configs/nextcloud.nix @@ -1,5 +1,6 @@ { pkgs, lib, ... }: let + passwordFile = path: toString (pkgs.writeText "password" (lib.strings.fileContents path)); inherit (import ) localAddresses; in { @@ -23,8 +24,8 @@ in dbuser = "nextcloud"; dbhost = "/run/postgresql"; # nextcloud will add /.s.PGSQL.5432 by itself dbname = "nextcloud"; - dbpass = lib.strings.fileContents ; - adminpass = lib.strings.fileContents ; + dbpassFile = passwordFile ; + adminpassFile = passwordFile ; adminuser = "admin"; # extraTrustedDomains = [ "toum.r" ]; };