To get onboard sound working on Teclast F5 with ES8336 codec we needs to use Linux kernel patches from SOF Project and the latest sof-firmware (v1.9).
On NixOS modify your configuration.nix like the following:
{ config, pkgs, lib, ... }:
{
imports = [