57 lines
1.7 KiB
Nix
Raw Normal View History

2023-07-26 21:20:52 +03:00
{ config, pkgs, lib, ... }: {
secrets = let
default = {
owner = config.services.outline.user;
services = [ "outline.service" ];
};
in {
minio-outline = default;
outline-mail = default;
outline-oidc = default;
outline-key = default;
outline-utils = default;
};
2024-01-21 16:26:48 +03:00
services.outline = {
enable = true;
port = 3010;
publicUrl = "https://docs.ataraxiadev.com";
forceHttps = false;
2023-07-26 21:20:52 +03:00
2024-01-21 16:26:48 +03:00
storage = {
accessKey = "outline";
secretKeyFile = config.secrets.minio-outline.decrypted;
region = config.services.minio.region;
uploadBucketUrl = "https://s3.ataraxiadev.com";
uploadBucketName = "outline";
# uploadMaxSize = 0;
};
2023-07-26 21:20:52 +03:00
2024-01-21 16:26:48 +03:00
oidcAuthentication = {
authUrl = "https://auth.ataraxiadev.com/application/o/authorize/";
tokenUrl = "https://auth.ataraxiadev.com/application/o/token/";
userinfoUrl = "https://auth.ataraxiadev.com/application/o/userinfo/";
clientId = "tUs7tv85xlK3W4VOw7AQDMYNXqibpV5H8ofR7zix";
clientSecretFile = config.secrets.outline-oidc.decrypted;
scopes = [ "openid" "email" "profile" ];
usernameClaim = "email";
displayName = "openid";
2023-07-26 21:20:52 +03:00
};
2024-01-21 16:26:48 +03:00
smtp = {
host = "mail.ataraxiadev.com";
port = 465;
secure = true;
username = "outline@ataraxiadev.com";
passwordFile = config.secrets.outline-mail.decrypted;
fromEmail = "Outline <no-reply@ataraxiadev.com>";
replyEmail = "Outline <outline@ataraxiadev.com>";
2023-07-26 21:20:52 +03:00
};
2024-01-21 16:26:48 +03:00
secretKeyFile = config.secrets.outline-key.decrypted;
utilsSecretFile = config.secrets.outline-utils.decrypted;
};
2023-07-26 21:20:52 +03:00
2024-01-21 16:26:48 +03:00
persist.state.directories = [
2023-07-26 21:20:52 +03:00
"/var/lib/redis-outline"
];
}