mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-04-20 03:34:07 +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;
|
chrootlocalUser = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
services.mastodon = {
|
services.akkoma = {
|
||||||
enable = true;
|
enable = true;
|
||||||
streamingProcesses = (lib.elemAt config.facter.report.hardware.cpu 0).cores - 1;
|
nginx = {
|
||||||
localDomain = "nyan.social";
|
enableACME = true;
|
||||||
elasticsearch.host = "127.0.0.1";
|
forceSSL = true;
|
||||||
smtp.fromAddress = "mastodon@nyan.social";
|
};
|
||||||
configureNginx = 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 = {
|
users.users.backupftp = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
initialPassword = "backupPassword";
|
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 = {
|
disko.devices = {
|
||||||
disk = {
|
disk = {
|
||||||
vdb = {
|
vdb = {
|
||||||
|
|
Loading…
Add table
Reference in a new issue