From 5fb3aa3ceaa4018ffe9dcb38e924d834ff708a57 Mon Sep 17 00:00:00 2001 From: niten Date: Mon, 17 Jul 2023 21:52:46 -0700 Subject: [PATCH] Add site_name --- lemmy-docker.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lemmy-docker.nix b/lemmy-docker.nix index 584937a..8db325c 100644 --- a/lemmy-docker.nix +++ b/lemmy-docker.nix @@ -152,7 +152,7 @@ let } ''; - makeLemmyCfg = { hostname, postgresPasswd, pictrsApiKey, smtpServer + makeLemmyCfg = { hostname, postgresPasswd, pictrsApiKey, smtpServer, siteName , adminPasswd ? null, ... }: pkgs.writeText "lemmy.hjson" (builtins.toJSON { database = { @@ -172,6 +172,7 @@ let setup = { admin_username = "admin"; admin_password = adminPasswd; + site_name = siteName; }; }); @@ -217,6 +218,11 @@ in { description = "Hostname at which this server is accessible."; }; + site-name = mkOption { + type = str; + description = "Name of this server."; + }; + port = mkOption { type = port; description = "Port on which to listen for Lemmy connections."; @@ -303,6 +309,7 @@ in { inherit postgresPasswd pictrsApiKey; smtpServer = cfg.smtp-server; adminPasswd = adminPasswd; + siteName = cfg.site-name; }; target-file = "/run/lemmy/lemmy.hjson"; };