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