mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-04-12 09:24:09 +02:00
use akkoma instead of mastodon
This commit is contained in:
parent
e4ca35cf8f
commit
9fd5ce7074
1 changed files with 19 additions and 36 deletions
|
@ -95,50 +95,33 @@ in
|
|||
chrootlocalUser = true;
|
||||
};
|
||||
|
||||
services.mastodon = {
|
||||
services.akkoma = {
|
||||
enable = true;
|
||||
streamingProcesses = (lib.elemAt config.facter.report.hardware.cpu 0).cores - 1;
|
||||
localDomain = "nyan.social";
|
||||
elasticsearch.host = "127.0.0.1";
|
||||
smtp.fromAddress = "mastodon@nyan.social";
|
||||
configureNginx = true;
|
||||
};
|
||||
nginx = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
};
|
||||
config = {
|
||||
":pleroma" = {
|
||||
":instance" = {
|
||||
name = "Nyan Social";
|
||||
description = "More detailed description";
|
||||
email = "admin@nyan.social";
|
||||
registration_open = false;
|
||||
};
|
||||
|
||||
services.opensearch.enable = true;
|
||||
"Pleroma.Web.Endpoint" = {
|
||||
url.host = "nyan.social";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
users.users.backupftp = {
|
||||
isNormalUser = true;
|
||||
initialPassword = "backupPassword";
|
||||
};
|
||||
|
||||
containers = {
|
||||
nyan = {
|
||||
privateNetwork = true;
|
||||
hostBridge = "br0"; # Specify the bridge name
|
||||
localAddress = "192.168.100.5/24";
|
||||
config = {
|
||||
system.stateVersion = "25.05";
|
||||
services.nginx = {
|
||||
virtualHosts."${config.containers.nyan.config.services.mastodon.localDomain}" = {
|
||||
forceSSL = false;
|
||||
enableACME = false;
|
||||
};
|
||||
};
|
||||
networking = {
|
||||
firewall = {
|
||||
enable = true;
|
||||
allowedTCPPorts = [
|
||||
80
|
||||
];
|
||||
allowedUDPPorts = [
|
||||
80
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
disko.devices = {
|
||||
disk = {
|
||||
vdb = {
|
||||
|
|
Loading…
Add table
Reference in a new issue