Add server package.

This commit is contained in:
niten 2024-01-22 15:07:40 -08:00
parent d91c7b7c98
commit b157a771c0
1 changed files with 7 additions and 0 deletions

View File

@ -44,6 +44,7 @@ let
database.createLocally = true; database.createLocally = true;
adminPasswordFile = cfg.admin-password-file; adminPasswordFile = cfg.admin-password-file;
nginx.enable = true; nginx.enable = true;
server.package = cfg.server-package;
settings = { settings = {
email = { email = {
smtp_server = cfg.smtp.host; smtp_server = cfg.smtp.host;
@ -109,6 +110,12 @@ in {
default = 25; default = 25;
}; };
}; };
server-package = mkOption {
type = package;
description = "Package to use for the server.";
default = pkgs.lemmy-server;
};
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {