mob next [ci-skip] [ci skip] [skip ci]
lastFile:modules/nixos/think-greater-cm.nix
This commit is contained in:
@@ -229,5 +229,19 @@ in
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.mysql = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.mariadb;
|
||||||
|
ensureDatabases = [ cfg.settings.DB_DATABASE ];
|
||||||
|
ensureUsers = [
|
||||||
|
{
|
||||||
|
name = cfg.settings.DB_USERNAME;
|
||||||
|
ensurePermissions = {
|
||||||
|
"${cfg.settings.DB_DATABASE}.*" = "ALL PRIVILEGES";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user