+62
nixos/modules/services/databases/mysql.nix
+62
nixos/modules/services/databases/mysql.nix
······description = "A file containing SQL statements to be executed on the first startup. Can be used for granting certain permissions on the database";···
······description = "A file containing SQL statements to be executed on the first startup. Can be used for granting certain permissions on the database";+The MySQL users will be identified using Unix socket authentication. This authenticates the Unix user with the+This option will never delete existing users or remove permissions, especially not when the value of this+option is changed. This means that users created and permissions assigned once through this option or···+( echo "CREATE USER IF NOT EXISTS '${user.name}'@'localhost' IDENTIFIED WITH ${if mysql == pkgs.mariadb then "unix_socket" else "auth_socket"};"