diff --git a/etcnixos/system-mreow.nix b/etcnixos/system-mreow.nix index 53ae6af..1822cd0 100644 --- a/etcnixos/system-mreow.nix +++ b/etcnixos/system-mreow.nix @@ -123,5 +123,19 @@ services.mysql = { enable = true; package = pkgs.mariadb; + ensureUsers = [ + { + name = "root"; + ensurePermissions = { + "*.*" = "ALL PRIVILEGES"; + }; + } + { + name = "${username}"; + ensurePermissions = { + "*.*" = "ALL PRIVILEGES"; + }; + } + ]; }; }