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" ]; };