1
0
mirror of https://github.com/kmein/niveum synced 2026-03-20 03:51:07 +01:00

chore(nextcloud): create password files

This commit is contained in:
2021-12-01 12:03:55 +01:00
parent bbc50f3642
commit 9b68ac87d8

View File

@@ -1,5 +1,6 @@
{ pkgs, lib, ... }: { pkgs, lib, ... }:
let let
passwordFile = path: toString (pkgs.writeText "password" (lib.strings.fileContents path));
inherit (import <niveum/lib>) localAddresses; inherit (import <niveum/lib>) localAddresses;
in in
{ {
@@ -23,8 +24,8 @@ in
dbuser = "nextcloud"; dbuser = "nextcloud";
dbhost = "/run/postgresql"; # nextcloud will add /.s.PGSQL.5432 by itself dbhost = "/run/postgresql"; # nextcloud will add /.s.PGSQL.5432 by itself
dbname = "nextcloud"; dbname = "nextcloud";
dbpass = lib.strings.fileContents <system-secrets/nextcloud/database>; dbpassFile = passwordFile <system-secrets/nextcloud/database>;
adminpass = lib.strings.fileContents <system-secrets/nextcloud/admin>; adminpassFile = passwordFile <system-secrets/nextcloud/admin>;
adminuser = "admin"; adminuser = "admin";
# extraTrustedDomains = [ "toum.r" ]; # extraTrustedDomains = [ "toum.r" ];
}; };