How to enable "Do Not Track" in Chromium using NixOS?

I configure Chromium using programs.chromium.extraOpts to have identical settings on all devices.

It’s using the Chrome Enterprise policies that are usually set by an organization. They don’t offer the “Do Not Track” setting there because “Do Not Track is intended to reflect a user preference, not a admin’s preference”.


So, how can i set this option using NixOS (or Home Manager)?

(Maybe we need a new NixOS option for it.)

I would suggest auditing and installing one of those third-party DNT extensions through the ExtensionInstallForcelist policy, or making you own if you prefer.