Add site_name
This commit is contained in:
parent
cc5525c46b
commit
5fb3aa3cea
|
@ -152,7 +152,7 @@ let
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
makeLemmyCfg = { hostname, postgresPasswd, pictrsApiKey, smtpServer
|
makeLemmyCfg = { hostname, postgresPasswd, pictrsApiKey, smtpServer, siteName
|
||||||
, adminPasswd ? null, ... }:
|
, adminPasswd ? null, ... }:
|
||||||
pkgs.writeText "lemmy.hjson" (builtins.toJSON {
|
pkgs.writeText "lemmy.hjson" (builtins.toJSON {
|
||||||
database = {
|
database = {
|
||||||
|
@ -172,6 +172,7 @@ let
|
||||||
setup = {
|
setup = {
|
||||||
admin_username = "admin";
|
admin_username = "admin";
|
||||||
admin_password = adminPasswd;
|
admin_password = adminPasswd;
|
||||||
|
site_name = siteName;
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -217,6 +218,11 @@ in {
|
||||||
description = "Hostname at which this server is accessible.";
|
description = "Hostname at which this server is accessible.";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
site-name = mkOption {
|
||||||
|
type = str;
|
||||||
|
description = "Name of this server.";
|
||||||
|
};
|
||||||
|
|
||||||
port = mkOption {
|
port = mkOption {
|
||||||
type = port;
|
type = port;
|
||||||
description = "Port on which to listen for Lemmy connections.";
|
description = "Port on which to listen for Lemmy connections.";
|
||||||
|
@ -303,6 +309,7 @@ in {
|
||||||
inherit postgresPasswd pictrsApiKey;
|
inherit postgresPasswd pictrsApiKey;
|
||||||
smtpServer = cfg.smtp-server;
|
smtpServer = cfg.smtp-server;
|
||||||
adminPasswd = adminPasswd;
|
adminPasswd = adminPasswd;
|
||||||
|
siteName = cfg.site-name;
|
||||||
};
|
};
|
||||||
target-file = "/run/lemmy/lemmy.hjson";
|
target-file = "/run/lemmy/lemmy.hjson";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue