Commit 9e32e76a authored by toastal's avatar toastal
Browse files

{movim,nixos.movim}: mysql → mariadb

Docs say now the separation between MySQL & MariaDB too great to be
supported going forward, so to better reflect that, rename to match.
parent 2dd78f18
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -58,7 +58,7 @@ let
        // lib.optionalAttrs (cfg.database.type == "postgresql") {
          withPostgreSQL = true;
        }
        // lib.optionalAttrs (cfg.database.type == "mysql") {
        // lib.optionalAttrs (cfg.database.type == "mariadb") {
          withMySQL = true;
        }
      );
@@ -168,7 +168,7 @@ let
  dbService =
    {
      "postgresql" = "postgresql.service";
      "mysql" = "mysql.service";
      "mariadb" = "mysql.service";
    }
    .${cfg.database.type};

@@ -475,10 +475,10 @@ in
      database = {
        type = mkOption {
          type = types.enum [
            "mysql"
            "mariadb"
            "postgresql"
          ];
          example = "mysql";
          example = "mariadb";
          default = "postgresql";
          description = "Database engine to use.";
        };
@@ -621,7 +621,7 @@ in
            DB_DRIVER =
              {
                "postgresql" = "pgsql";
                "mysql" = "mysql";
                "mariadb" = "mysql";
              }
              .${cfg.database.type};
            DB_HOST = "localhost";
@@ -791,7 +791,7 @@ in
        }
      );

      mysql = mkIf (cfg.database.createLocally && cfg.database.type == "mysql") {
      mysql = mkIf (cfg.database.createLocally && cfg.database.type == "mariadb") {
        enable = mkDefault true;
        package = mkDefault pkgs.mariadb;
        ensureDatabases = [ cfg.database.name ];
+2 −2
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@
  php,
  phpCfg ? null,
  withPostgreSQL ? true, # “strongly recommended” according to docs
  withMySQL ? false,
  withMariaDB ? false,
  minifyStaticFiles ? false, # default files are often not minified
  esbuild,
  lightningcss,
@@ -71,7 +71,7 @@ php.buildComposerProject2 (finalAttrs: {
          all.pdo_pgsql
          all.pgsql
        ]
        ++ lib.optionals withMySQL [
        ++ lib.optionals withMariaDB [
          all.mysqli
          all.mysqlnd
          all.pdo_mysql