From f755ab317244435519176363875ae55f21093276 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Eug=C3=AAnio?= Date: Sun, 8 Dec 2024 19:13:16 -0300 Subject: [PATCH] phantom: add lemmy --- hosts/phantom/default.nix | 1 + hosts/phantom/lemmy.nix | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 hosts/phantom/lemmy.nix diff --git a/hosts/phantom/default.nix b/hosts/phantom/default.nix index e5570ee..45c27d7 100644 --- a/hosts/phantom/default.nix +++ b/hosts/phantom/default.nix @@ -11,6 +11,7 @@ ../../system/nix.nix ./hardware-config.nix ./mastodon.nix + ./lemmy.nix ./nextcloud.nix ./nginx.nix ./syncthing.nix diff --git a/hosts/phantom/lemmy.nix b/hosts/phantom/lemmy.nix new file mode 100644 index 0000000..61bf2e4 --- /dev/null +++ b/hosts/phantom/lemmy.nix @@ -0,0 +1,15 @@ +{ + services.lemmy = { + enable = true; + settings = { + hostname = "lemmy.lelgenio.com"; + }; + database.createLocally = true; + nginx.enable = true; + }; + + services.nginx.virtualHosts."lemmy.lelgenio.com" = { + enableACME = true; + forceSSL = true; + }; +}