Incomplete installation of Discourse on pendragon. Missing in particular are emails (both outgoing and incoming). Signed-off-by: Jeltz <jeltz@federez.net>
19 lines
483 B
Nix
19 lines
483 B
Nix
{ config, lib, pkgs, ... }: {
|
|
age.secrets.discourse-key-base = {
|
|
file = ../secrets/discourse-key-base.age;
|
|
owner = "discourse";
|
|
group = "discourse";
|
|
};
|
|
|
|
services.postgresql.package = pkgs.postgresql_13;
|
|
|
|
services.discourse = {
|
|
enable = true;
|
|
hostname = "forum.federez.net";
|
|
secretKeyBaseFile = config.age.secrets.discourse-key-base.path;
|
|
# TODO(jeltz): mail
|
|
admin.skipCreate = true;
|
|
};
|
|
|
|
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
|
}
|