Fixup Databases
This commit is contained in:
@@ -36,11 +36,12 @@ in {
|
||||
services.postgresql = {
|
||||
enable = true;
|
||||
port = 5432;
|
||||
ensureDatabases = [
|
||||
"gitea"
|
||||
];
|
||||
ensureUsers = [{
|
||||
name = "gitea";
|
||||
ensurePermissions = {
|
||||
"DATABASE \"gitea\"" = "ALL PRIVILEGES";
|
||||
};
|
||||
ensureDBOwnership = true;
|
||||
ensureClauses = {
|
||||
createdb = true;
|
||||
};
|
||||
|
||||
@@ -76,8 +76,8 @@ in {
|
||||
# generate video thumbnails with preview generator
|
||||
ffmpeg_5-headless
|
||||
# required for recognize app
|
||||
nodejs-14_x # runtime and installation requirement
|
||||
nodejs-14_x.pkgs.node-pre-gyp # installation requirement
|
||||
nodejs_20 # runtime and installation requirement
|
||||
nodejs_20.pkgs.node-pre-gyp # installation requirement
|
||||
util-linux # runtime requirement for taskset
|
||||
];
|
||||
};
|
||||
@@ -103,9 +103,7 @@ in {
|
||||
];
|
||||
ensureUsers = [{
|
||||
name = "nextcloud";
|
||||
ensurePermissions = {
|
||||
"DATABASE \"nextcloud\"" = "ALL PRIVILEGES";
|
||||
};
|
||||
ensureDBOwnership = true;
|
||||
ensureClauses = {
|
||||
createdb = true;
|
||||
};
|
||||
|
||||
@@ -42,9 +42,7 @@
|
||||
];
|
||||
ensureUsers = [{
|
||||
name = "onlyoffice";
|
||||
ensurePermissions = {
|
||||
"DATABASE \"onlyoffice\"" = "ALL PRIVILEGES";
|
||||
};
|
||||
ensureDBOwnership = true;
|
||||
}];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -22,9 +22,7 @@
|
||||
];
|
||||
ensureUsers = [{
|
||||
name = "vaultwarden";
|
||||
ensurePermissions = {
|
||||
"DATABASE \"vaultwarden\"" = "ALL PRIVILEGES";
|
||||
};
|
||||
ensureDBOwnership = true;
|
||||
}];
|
||||
};
|
||||
services.caddy.virtualHosts = {
|
||||
|
||||
Reference in New Issue
Block a user