mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
modules/nixos/glauth: sqlite support
This commit is contained in:
parent
d64087e160
commit
88428d9a3f
1 changed files with 2 additions and 2 deletions
|
|
@ -63,14 +63,14 @@ in
|
|||
datastore = "plugin";
|
||||
plugin = "bin/${cfg.database.type}.so";
|
||||
pluginhandler = pluginHandlers.${dbcfg.type};
|
||||
database = builtins.replaceStrings (singleton "\n") (singleton " ") ''
|
||||
database = if dbcfg.type != "sqlite" then (builtins.replaceStrings (singleton "\n") (singleton " ") ''
|
||||
host=${dbcfg.host}
|
||||
port=${dbcfg.port}
|
||||
dbname=glauth
|
||||
username=${dbcfg.username}
|
||||
password=@db-password@
|
||||
sslmode=${if dbcfg.ssl then "enable" else "disable"}
|
||||
'';
|
||||
'') else "database = \"gl.db\"";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue