diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..b988793 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "config/hosts/grondahl/services/ooye"] + path = config/hosts/grondahl/services/ooye + url = https://cgit.rory.gay/nix/OOYE-module.git diff --git a/config/hosts/grondahl/configuration.nix b/config/hosts/grondahl/configuration.nix index a7ac181..a4bb6cf 100644 --- a/config/hosts/grondahl/configuration.nix +++ b/config/hosts/grondahl/configuration.nix @@ -16,6 +16,7 @@ ./services/nginx.nix ./services/synapse.nix ./services/postgres.nix + ./services/ooye.nix #./services/mail.nix #./services/containers.nix #./services/redis.nix diff --git a/config/hosts/grondahl/data/secrets/ooye_client_secret b/config/hosts/grondahl/data/secrets/ooye_client_secret new file mode 100644 index 0000000..719fb6e Binary files /dev/null and b/config/hosts/grondahl/data/secrets/ooye_client_secret differ diff --git a/config/hosts/grondahl/data/secrets/ooye_token b/config/hosts/grondahl/data/secrets/ooye_token new file mode 100644 index 0000000..99de111 Binary files /dev/null and b/config/hosts/grondahl/data/secrets/ooye_token differ diff --git a/config/hosts/grondahl/data/secrets/secrets.nix b/config/hosts/grondahl/data/secrets/secrets.nix index 1c37a01..88d7155 100644 Binary files a/config/hosts/grondahl/data/secrets/secrets.nix and b/config/hosts/grondahl/data/secrets/secrets.nix differ diff --git a/config/hosts/grondahl/services/nginx.nix b/config/hosts/grondahl/services/nginx.nix index 2195ebe..7b5d306 100644 --- a/config/hosts/grondahl/services/nginx.nix +++ b/config/hosts/grondahl/services/nginx.nix @@ -1,6 +1,11 @@ { imports = [ ../../../common/services/nginx.nix ]; services.nginx.virtualHosts = { + "ooye.anarkafem.dev" = { + enableACME = true; + forceSSL = true; + locations."/".proxyPass = "http://127.0.0.1:6693/"; + }; "anarkafem.dev" = { enableACME = true; forceSSL = true; diff --git a/config/hosts/grondahl/services/ooye b/config/hosts/grondahl/services/ooye new file mode 160000 index 0000000..11cc65e --- /dev/null +++ b/config/hosts/grondahl/services/ooye @@ -0,0 +1 @@ +Subproject commit 11cc65efa2909bdc7e3e978bf1f56f6d141bf82a diff --git a/config/hosts/grondahl/services/ooye.nix b/config/hosts/grondahl/services/ooye.nix new file mode 100644 index 0000000..f739cf3 --- /dev/null +++ b/config/hosts/grondahl/services/ooye.nix @@ -0,0 +1,16 @@ +# Out of your Element prerequisites +{ config, ... }: +{ + imports = [ + ./ooye/module.nix + ]; + services.matrix-ooye = { + enable = true; + homeserver = "http://localhost:8008"; + namespace = "_discord_"; + discordClientSecretPath = builtins.toString config.secrets.files.ooye_client_secret.file; + discordTokenPath = builtins.toString config.secrets.files.ooye_token.file; + bridgeOrigin = "https://ooye.anarkafem.dev"; + enableSynapseIntegration = true; + }; +}