fix: dex: use method similar to lldap for sqlite storage

main
LeRoyce Pearson 2024-01-11 21:40:09 -07:00
parent b8d11783e8
commit 04dc7f766f
1 changed files with 7 additions and 2 deletions

View File

@ -180,9 +180,14 @@
users.users.dex = { users.users.dex = {
isSystemUser = true; isSystemUser = true;
group = "dex"; group = "dex";
home = "/var/lib/dex/";
}; };
users.groups.dex = {}; users.groups.dex = {};
systemd.services.dex = {
StateDirectory = "dex";
WorkingDirectory = "%S/dex";
User = "dex";
Group = "dex";
};
services.dex = { services.dex = {
enable = true; enable = true;
environmentFile = config.age.secrets.DEX_ENVIRONMENT_FILE.path; environmentFile = config.age.secrets.DEX_ENVIRONMENT_FILE.path;
@ -192,7 +197,7 @@
storage = { storage = {
type = "sqlite3"; type = "sqlite3";
config.file = "/var/lib/dex/dex.db"; config.file = "./dex.db";
}; };
# services that can get a token from our dex instance # services that can get a token from our dex instance