Skip to content

MySQL configuration is not idempotent #1968

Open
@jwyuen

Description

@jwyuen

Hello! Just wanted to express some concern over the mysql configuration (at least in a flake) where the settings are not idempotent which can cause issues if you want to use the flake as the source of configuration truth. This is also especially true given the context that this is normally how configuration works in Nix itself.

At the same time I can see two sides of this where ppl using it as purely for dev purposes would find it more useful to have the settings be idempotent vs others who might (wrongly?) use this in production and would not want to accidentally blow away database settings. Perhaps a flag can be set to switch behavior between the two.

As for reproducing this situation, you can see the problem rearing itself when attempting to modify user permissions from the flake when I've already ran the server before and the user already has some permissions set.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions