From 5eca20902c3396c8f366091442339169fb0e76e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Eug=C3=AAnio?= Date: Sun, 15 Oct 2023 01:28:01 -0300 Subject: [PATCH] ghost: add mastodon --- hosts/ghost.nix | 13 +++++++++++++ secrets/ghost-nextcloud.age | 24 ++++++++++++------------ 2 files changed, 25 insertions(+), 12 deletions(-) diff --git a/hosts/ghost.nix b/hosts/ghost.nix index e6595cf..cf074f9 100644 --- a/hosts/ghost.nix +++ b/hosts/ghost.nix @@ -70,6 +70,14 @@ }; }; + services.mastodon = { + enable = true; + localDomain = "social.lelgenio.xyz"; + configureNginx = true; + smtp.fromAddress = "lelgenio@disroot.org"; + extraConfig.SINGLE_USER_MODE = "true"; + }; + services.nginx.virtualHosts.${config.services.nextcloud.hostName} = { forceSSL = true; enableACME = true; @@ -81,6 +89,11 @@ networking.firewall.allowedTCPPorts = [ 80 443 ]; + swapDevices = [{ + device = "/swap/swapfile"; + size = (1024 * 2); # 2 GB + }]; + system.stateVersion = "23.05"; # Never change this } diff --git a/secrets/ghost-nextcloud.age b/secrets/ghost-nextcloud.age index 37e726b..c180524 100644 --- a/secrets/ghost-nextcloud.age +++ b/secrets/ghost-nextcloud.age @@ -1,15 +1,15 @@ age-encryption.org/v1 -> ssh-rsa BwwxHg -CgOkaIy+ZuqNHzRX/OnUZbtHeSevslgVz71cBSqSsaTxuB74D+hSoIsUZW50/x0n -jKz9XF/3Fp+WwTtBNGwhI6VpYrbOFSyLzNGtyO+SyUVQKjST9Cw0QbPCko9DTAEK -pfSjP+Ie3A2gq6mUFJxTjQG4t+kmNPCxHeAVvKepgEkOxkQdirKec+ckjGXh91yK -IvEOthD4NR5OQF8QqHffzFQtSrFISF5eKHvJJZADydnr54g8+vPJgOy90isRzVPz -cp3pAnyNgPu4Ia6yOuM6/GmGlJUtSqV/22JQJBgz0DmgmHVlzJEjhQ6b9RIeBz/5 -M6AugEJlGsLpUccqeJcfihLOzDrOeT8wei/CLea4U0jJMGtWEitVWF+dSt7YkrJr -wWnHMqhl7lFjxN44zbGznQqnSDRcfO7vxmnaUwFAebid0P+v0NNonweYdro0YEF/ -hfTUqQfW82+4GYOsFEDCt0Z3lcifr5b9rgHDGDyycFtwBDKW3SbOmTFkKQJ+vwQ0 +bpGCgyaAPDutva1Gp/YPuek6IZTXJHKb7+oIAV/x+7Ry4Oci9zM2VWvPVE/rPE/d +0AzBX1NvsWBB005w42RfiErk4FQYRCouwNR1FNjUWNdQOmku++RPfxBXspAFIDkQ +yM7mqbhwf5by5rZY+2kl20QxkErkVtZolus1am9RV4uyXfdPaRcKjWOuPiEim42d +YdeCXq4nJGxlL3tRunIqLIZGhV08wHBl7Dubhn9hdD6/ekDk0RloVTBDZUY5tUPL +dJk+bfFPI0DimytzCwyQbWEHOkdiWYSNzbx2JhTSvuqefHP1UzB2LukaQc2gOJFV +mVKvQuGpOWknytMUhM6zCTvRw4OQutAZd96OniQYTas/vnmfT2l2n9aMEzQK157A +U9DmsvhBypILiQSPpA7QrGB1QVuRjAFJA86ASY1FAT6MdBBK4vZ8fK7mpT06JO/n +gwv+UlvFBziWHzA/1GOLrfD+ExjmbeucRZr5XGszrAaK/7GPZt4LF69hRmKegL94 --> CL,"/i5.-grease \2_ R|j[#4B Mx5'9 /, -jX9wt0kuGZ89xhA/ ---- iSlatZrp3jzlFY4VXx5CPNk521dJwM4L3rEDL4mO9GM -S 7?p+0ep0\ހMj0ZɁ]|zKڳ"$E 9I3~SC,<-grease M$2 RibFL]C +uR6MirHtTc4Tyrcw3T2my+BN2Q +--- 56zk9BqgwQqNymga1mUDgpvtfIpMy5i/JnaSXbjx6jk +Qޗ)Nڦߑ-Dz-I-]p$X5TPU=u;k8}wVm= \ No newline at end of file