services.mysql.dataDir
NixOS option
The data directory for MySQL. If left as the default value of /var/lib/mysql this directory will automatically be created before the MySQL server starts, otherwise you are responsible for ensuring the directory exists with appropriate ownership and permissions.
type: absolute pathDefault
"/var/lib/mysql"
Example
declared in: nixos/modules/services/databases/mysql.nixView source on NixOS/nixpkgs →"/var/lib/mysql"