diff --git a/machines/gustave/default.nix b/machines/gustave/default.nix index 117fcea..80bc592 100644 --- a/machines/gustave/default.nix +++ b/machines/gustave/default.nix @@ -16,7 +16,6 @@ ./plausible.nix ./nextcloud.nix ./glance.nix - ./mastodon.nix ]; machine.meta = { diff --git a/machines/gustave/mastodon.nix b/machines/gustave/mastodon.nix deleted file mode 100644 index f5a6c08..0000000 --- a/machines/gustave/mastodon.nix +++ /dev/null @@ -1,41 +0,0 @@ -{ config, ... }: - -{ - - age.secrets."mastodon-env".file = ../../secrets/mastodon-env.age; - - services.mastodon = { - enable = true; - localDomain = "social.luj.fr"; - configureNginx = true; - extraConfig.SINGLE_USER_MODE = "true"; - streamingProcesses = 10; - extraConfig = { - OIDC_ENABLED = "true"; - OIDC_DISPLAY_NAME = "Luj - SSO"; - OIDC_DISCOVERY = "true"; - OIDC_ISSUER = "https://auth.luj.fr/oauth2/openid/mastodon"; - OIDC_SCOPE = "openid,profile,email"; - OIDC_UID_FIELD = "email"; - OIDC_CLIENT_ID = "mastodon"; - OIDC_REDIRECT_URI = "https://social.luj.fr/auth/auth/openid_connect/callback"; - OIDC_SECURITY_ASSUME_EMAIL_IS_VERIFIED = "true"; - ONE_CLICK_SSO_LOGIN = "true"; - - # S3 - S3_ENABLED = "true"; - S3_BUCKET = "mastodon"; - S3_REGION = "paris"; - S3_ENDPOINT = "https://s3.luj.fr"; - S3_HOSTNAME = "s3.luj.fr"; - S3_ALIAS_HOST = "cdn.social.luj.fr"; - SMTP_SERVER = "mail.luj.fr"; - SMTP_PORT = "587"; - SMTP_FROM_ADDRESS = "infra@luj.fr"; - SMTP_LOGIN = "luj"; - }; - extraEnvFiles = [ config.age.secrets."mastodon-env".path ]; - - }; - -}