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; + }; +}