Add nix-infra-machine

This commit is contained in:
Ruben Hensen
2026-03-15 18:31:53 +01:00
parent 28ea6f4a47
commit 1034986fa1
79 changed files with 14465 additions and 0 deletions
@@ -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";
};
}
];
};
}