Add back Mastodon
This commit is contained in:
parent
7577113cf9
commit
bba4e01a2b
4 changed files with 23 additions and 1 deletions
|
@ -6,6 +6,7 @@
|
||||||
forgejo.enable = true;
|
forgejo.enable = true;
|
||||||
icecast.enable = true;
|
icecast.enable = true;
|
||||||
jellyfin.enable = true;
|
jellyfin.enable = true;
|
||||||
|
mastodon.enable = true;
|
||||||
matrix-synapse.enable = true;
|
matrix-synapse.enable = true;
|
||||||
mysql.enable = true;
|
mysql.enable = true;
|
||||||
nextcloud.enable = true;
|
nextcloud.enable = true;
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
./icecast
|
./icecast
|
||||||
./jellyfin
|
./jellyfin
|
||||||
./mailserver
|
./mailserver
|
||||||
|
./mastodon
|
||||||
./matrix
|
./matrix
|
||||||
./minecraft
|
./minecraft
|
||||||
./mysql
|
./mysql
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
};
|
};
|
||||||
service = {
|
service = {
|
||||||
REGISTER_EMAIL_CONFIRM = true;
|
REGISTER_EMAIL_CONFIRM = true;
|
||||||
DISABLE_REGISTRATION = true;
|
DISABLE_REGISTRATION = false;
|
||||||
};
|
};
|
||||||
ui.DEFAULT_THEME = "forgejo-dark";
|
ui.DEFAULT_THEME = "forgejo-dark";
|
||||||
};
|
};
|
||||||
|
|
20
modules/system/services/server/mastodon/default.nix
Normal file
20
modules/system/services/server/mastodon/default.nix
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
{
|
||||||
|
config = lib.mkIf config.services.mastodon.enable {
|
||||||
|
services.mastodon = {
|
||||||
|
localDomain = "social.nixfox.ca";
|
||||||
|
streamingProcesses = 4;
|
||||||
|
configureNginx = true;
|
||||||
|
smtp = {
|
||||||
|
createLocally = false;
|
||||||
|
host = "mx.nixfox.ca";
|
||||||
|
port = 587;
|
||||||
|
authenticate = true;
|
||||||
|
fromAddress = "NixFox Mastodon <noreply@nixfox.ca>";
|
||||||
|
user = "noreply@nixfox.ca";
|
||||||
|
passwordFile = pkgs.writeText "smtp_pass.txt" config.secrets.mailPass.nixfoxNoReply;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
environment.persistence."/persist".directories = [ "/var/lib/mastodon" ];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue