refactor: streamline core modules into dedicated folder
This commit is contained in:
parent
b429e6468f
commit
01bcc9ecad
12 changed files with 27 additions and 28 deletions
20
modules/core/mysql.nix
Normal file
20
modules/core/mysql.nix
Normal 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"
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue