mirror of
https://github.com/rubenhensen/k8scd.git
synced 2026-09-17 02:12:55 +02:00
Add nix-infra-machine
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
{ config, pkgs, lib, ... }: {
|
||||
# Enable MariaDB using the infrastructure module
|
||||
infrastructure.mariadb = {
|
||||
enable = true;
|
||||
bindToIp = "127.0.0.1";
|
||||
bindToPort = 3306;
|
||||
|
||||
# Create initial database
|
||||
initialDatabases = [
|
||||
{ name = "testdb"; }
|
||||
];
|
||||
|
||||
# Create test user with access to testdb
|
||||
ensureUsers = [
|
||||
{
|
||||
name = "testuser";
|
||||
ensurePermissions = {
|
||||
"testdb.*" = "ALL PRIVILEGES";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user