Tons o' stuff
This commit is contained in:
@@ -112,7 +112,7 @@ let
|
||||
|
||||
listen-ips = getHostIps hostname;
|
||||
|
||||
state-directory = "/var/lib/nsd";
|
||||
state-directory = cfg.state-directory;
|
||||
|
||||
timestamp = toString config.instance.build-timestamp;
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ in {
|
||||
lemmyDbUrl = {
|
||||
source-file = let
|
||||
url =
|
||||
"postgres:///lemmy?user=lemmy&password=${lemmyDbPasswd}&host=/var/run/postgresql";
|
||||
"postgres:///lemmy?user=lemmy&password=${lemmyDbPasswd}&host=localhost&port=5432";
|
||||
in pkgs.writeText "lemmy-db.url" url;
|
||||
target-file = "/run/lemmy/db.url";
|
||||
};
|
||||
|
||||
@@ -204,8 +204,9 @@ in {
|
||||
source-file =
|
||||
pkgs.lib.passwd.stablerandom-passwd-file "nexus-server-passwd"
|
||||
"nexus-server-${config.instance.build-seed}";
|
||||
target-file = "/run/nexus/server-db.passwd";
|
||||
user = "postgres";
|
||||
target-file = "/run/nexus-postgres/server-db.passwd";
|
||||
user = config.systemd.services.postgresql.serviceConfig.User;
|
||||
group = config.systemd.services.postgresql.serviceConfig.Group;
|
||||
};
|
||||
|
||||
nexus-dns-server-passwd = mkIf isDnsServer {
|
||||
|
||||
Reference in New Issue
Block a user