From ecf89fc0d0c99af5c92409f36b61ec56c71e1bf9 Mon Sep 17 00:00:00 2001 From: Taeer Bar-Yam Date: Wed, 28 Feb 2024 16:49:16 -0500 Subject: [PATCH] tweaks --- README.md | 3 ++- configuration.nix | 9 +++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 60a31ecc..35a396e5 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,8 @@ nixos-rebuild build-vm --flake .#mastodon Now you can access mastodon at -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 diff --git a/configuration.nix b/configuration.nix index 33ee5ff5..4fb4d41f 100644 --- a/configuration.nix +++ b/configuration.nix @@ -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";