This commit is contained in:
Taeer Bar-Yam 2024-02-28 16:49:16 -05:00
parent 6942d1dcf2
commit ecf89fc0d0
2 changed files with 9 additions and 3 deletions

View file

@ -7,7 +7,8 @@ nixos-rebuild build-vm --flake .#mastodon
Now you can access mastodon at <https://social.local.gd:44443>
You will have to "accept the security risk".
- You will have to "accept the security risk".
- It may take a minute for the webpage to come online. Until then you will see 502 Bad Gateway
# TODOs

View file

@ -11,7 +11,7 @@
configureNginx = true;
# TODO: configure a mailserver so this works
smtp.fromAddress = "mastodon_vm";
# smtp.fromAddress = "mastodon@social.local.gd";
# TODO: this is hardware-dependent. let's figure it out when we have hardware
# streamingProcesses = 1;
@ -41,10 +41,14 @@
# SEE: local.gd
localDomain = "social.local.gd";
smtp = {
fromAddress = "mastodon@social.local.gd";
createLocally = false;
};
# from the documentation: recommended is the amount of your CPU cores minus one.
# but it also must be a positive integer
streamingProcesses = let
ncores = config.virtualistation.cores;
ncores = config.virtualisation.cores;
max = x: y: if x > y then x else y;
in
max 1 (ncores - 1);
@ -59,6 +63,7 @@
};
};
virtualisation.memorySize = 2048;
virtualisation.forwardPorts = [
{
from = "host";