mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
unix ports cool
This commit is contained in:
parent
2fc4baa6ee
commit
d47fc2217a
5 changed files with 37 additions and 62 deletions
|
|
@ -7,9 +7,9 @@ _: {
|
|||
enable = true;
|
||||
package = pkgs.postgresql_13;
|
||||
dataDir = "/persist/services/postgresql";
|
||||
|
||||
ensureDatabases = [
|
||||
"miniflux"
|
||||
config.services.nextcloud.config.dbname
|
||||
config.services.gitea.database.user
|
||||
];
|
||||
ensureUsers = [
|
||||
|
|
@ -17,15 +17,9 @@ _: {
|
|||
name = "miniflux";
|
||||
ensurePermissions."DATABASE miniflux" = "ALL PRIVILEGES";
|
||||
}
|
||||
{
|
||||
name = config.services.nextcloud.config.dbuser;
|
||||
ensurePermissions."DATABASE ${config.services.nextcloud.config.dbname}" = "ALL PRIVILEGES";
|
||||
}
|
||||
{
|
||||
name = config.services.gitea.database.user;
|
||||
ensurePermissions."DATABASE ${config.services.gitea.database.name}" = "ALL PRIVILEGES";
|
||||
}
|
||||
];
|
||||
|
||||
settings.unix_socket_permissions = "0770";
|
||||
};
|
||||
_file = ./postgresql.nix;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue