This commit is contained in:
gabriel-doriath-dohler 2022-01-25 23:59:59 +00:00
parent 3670aab583
commit 6535ca50af

View file

@ -0,0 +1,41 @@
{ config, ... }:
let
my = config.my
in
{
services.dex = {
enable = true;
settings = {
issuer = "";
storage = {
type = "sqlite3";
config.file = "gitea/dex.db";
};
enablePasswordDB = true;
/*
web = {
http = "";
};
staticClients = [
{
id = "oidcclient";
name = "Client";
redirectURIs = [ "/callback" ];
secretFile = "/etc/dex/oidcclient";
}
];
*/
connectors = {
type = "gitea";
id = "gitea";
name = "Gitea";
config = {
clientID = ;
clientSecret = ;
redirectURL = "http://127.0.0.1:5556/dex/callback";
baseURL = "https://git.${my.subZone}";
};
};
};
};
}