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 path
Default
"/var/lib/mysql"
Example
"/var/lib/mysql"
declared in: nixos/modules/services/databases/mysql.nixView source on NixOS/nixpkgs →