refactor: streamline core modules into dedicated folder

This commit is contained in:
Rouven Seifert 2024-03-12 12:03:29 +01:00
parent b429e6468f
commit 01bcc9ecad
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09
12 changed files with 27 additions and 28 deletions

20
modules/core/mysql.nix Normal file
View file

@ -0,0 +1,20 @@
{ pkgs, ... }:
{
services.mysql = {
enable = true;
package = pkgs.mariadb;
settings.mysqld.bind_address = "127.0.0.1";
};
services.mysqlBackup = {
enable = true;
user = "mysql";
location = "/var/lib/backup/mysql";
databases = [
"decisions"
"fsrewsp"
"nightline"
"wiki_ese"
"wiki_vernetzung"
];
};
}