auth machine
This commit is contained in:
parent
98dce86882
commit
851a9e18db
34 changed files with 2383 additions and 99 deletions
23
machines/auth/postgres.nix
Normal file
23
machines/auth/postgres.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{lib, ...}: {
|
||||
services.postgresql = {
|
||||
enable = true;
|
||||
ensureDatabases = [
|
||||
"authelia-procopius"
|
||||
"lldap"
|
||||
];
|
||||
ensureUsers = [
|
||||
{
|
||||
name = "authelia-procopius";
|
||||
ensureDBOwnership = true;
|
||||
}
|
||||
{
|
||||
name = "lldap";
|
||||
ensureDBOwnership = true;
|
||||
}
|
||||
];
|
||||
authentication = lib.mkForce ''
|
||||
# TYPE DATABASE USER ADDRESS METHOD
|
||||
local all all trust
|
||||
'';
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue