Everything in the command attribute is turned into a shell script and passed to a systemd service.
# configuration.nix
{
services.autoadb = {
enable = true;
package = pkgs.autoadb;
command = "
adb shell settings put global sem_enhanced_cpu_responsiveness 1
scrcpy -s '{}'
";
extraPackages = [ pkgs.scrcpy ];
};
}