change nextcloud to mariadb
This commit is contained in:
parent
d9977599fc
commit
c05ba67bd7
1 changed files with 18 additions and 1 deletions
|
|
@ -16,7 +16,12 @@
|
||||||
inherit contacts calendar tasks;
|
inherit contacts calendar tasks;
|
||||||
};
|
};
|
||||||
extraAppsEnable = true;
|
extraAppsEnable = true;
|
||||||
config.adminpassFile = config.sops.secrets.nextcloud-adminpass.path;
|
|
||||||
|
config = {
|
||||||
|
adminpassFile = config.sops.secrets.nextcloud-adminpass.path;
|
||||||
|
dbtype = "mysql";
|
||||||
|
dbhost = "/run/mysqld/mysqld.sock";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.nginx.virtualHosts.${config.services.nextcloud.hostName} = {
|
services.nginx.virtualHosts.${config.services.nextcloud.hostName} = {
|
||||||
|
|
@ -24,4 +29,16 @@
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
acmeRoot = null;
|
acmeRoot = null;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
config.services.mysql.ensureUsers = [
|
||||||
|
{
|
||||||
|
name = "nextcloud";
|
||||||
|
ensurePermissions = {
|
||||||
|
"nextcloud.*" = "ALL PRIVILEGES";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
config.services.mysql.ensureDatabases = [ "nextcloud" ];
|
||||||
|
config.services.mysqlBackup.databases = [ "nextcloud" ];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue