Tons o' stuff

This commit is contained in:
2024-03-23 14:23:43 -07:00
parent cf10f910bd
commit 8b10f47699
17 changed files with 259 additions and 146 deletions
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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";
};
+3 -2
View File
@@ -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 {