2022-01-26 00:59:59 +01:00
|
|
|
{ config, ... }:
|
|
|
|
let
|
2022-01-26 00:59:59 +01:00
|
|
|
my = config.my;
|
2022-01-26 00:59:59 +01:00
|
|
|
in
|
|
|
|
{
|
|
|
|
services.dex = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
2022-01-26 00:59:59 +01:00
|
|
|
issuer = "http://127.0.0.1:5556/dex";
|
2022-01-26 00:59:59 +01:00
|
|
|
storage = {
|
|
|
|
type = "sqlite3";
|
|
|
|
config.file = "gitea/dex.db";
|
|
|
|
};
|
|
|
|
enablePasswordDB = true;
|
|
|
|
web = {
|
2022-01-26 00:59:59 +01:00
|
|
|
http = "127.0.0.1:5556";
|
2022-01-26 00:59:59 +01:00
|
|
|
};
|
2022-01-26 00:59:59 +01:00
|
|
|
connectors = [ {
|
2022-01-26 00:59:59 +01:00
|
|
|
type = "gitea";
|
|
|
|
id = "gitea";
|
|
|
|
name = "Gitea";
|
|
|
|
config = {
|
2022-01-26 00:59:59 +01:00
|
|
|
clientID = "Gitea";
|
|
|
|
clientSecret = "b2a1b7ae-2f31-489d-84c3-4d429085db14";
|
2022-01-26 00:59:59 +01:00
|
|
|
redirectURL = "http://127.0.0.1:5556/dex/callback";
|
|
|
|
baseURL = "https://git.${my.subZone}";
|
|
|
|
};
|
2022-01-26 00:59:59 +01:00
|
|
|
} ];
|
2022-01-26 00:59:59 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|