mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
fix(invidious): database setup
This commit is contained in:
parent
aa59293596
commit
4bcd6661c9
4 changed files with 15 additions and 6 deletions
|
|
@ -8,13 +8,18 @@
|
|||
in {
|
||||
services.postgresql = {
|
||||
enable = mkDefault true;
|
||||
ensureDatabases = ["hass" "dex"];
|
||||
ensureDatabases = ["hass" "invidious" "dex"];
|
||||
ensureUsers = [
|
||||
{
|
||||
name = "hass";
|
||||
ensureDBOwnership = true;
|
||||
authentication.tailscale.allow = !config.services.home-assistant.enable;
|
||||
}
|
||||
{
|
||||
name = "invidious";
|
||||
ensureDBOwnership = true;
|
||||
authentication.local.allow = true;
|
||||
}
|
||||
{
|
||||
name = "dex";
|
||||
ensureDBOwnership = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue