feat(teal): add auxolotl docs-site
Change-Id: I58e77689760a91ba0778f2bbb8dabde724973f2b
Reviewed-on: https://git.clicks.codes/c/Infra/NixFiles/+/786
Reviewed-by: Samuel Shuert <coded@clicks.codes>
Tested-by: Skyler Grey <minion@clicks.codes>
diff --git a/modules/nixos/clicks/sites/docs.auxolotl.org/default.nix b/modules/nixos/clicks/sites/docs.auxolotl.org/default.nix
new file mode 100644
index 0000000..1329503
--- /dev/null
+++ b/modules/nixos/clicks/sites/docs.auxolotl.org/default.nix
@@ -0,0 +1,20 @@
+# SPDX-FileCopyrightText: 2024 Clicks Codes
+#
+# SPDX-License-Identifier: GPL-3.0-only
+
+{ config, inputs, lib, system, ... }:
+
+{
+ options.clicks.sites."docs.auxolotl.org".enable = lib.options.mkEnableOption "Enable hosting https://docs.auxolotl.org";
+
+ config = lib.modules.mkIf config.clicks.sites."docs.auxolotl.org".enable {
+ clicks.services.nginx = {
+ enable = true;
+
+ hosts."docs.auxolotl.org" = {
+ service = lib.clicks.nginx.http.directory "${builtins.toString inputs.aux--docs-site.packages.${system}.default}";
+ www = false;
+ };
+ };
+ };
+}