{ config, lib, pkgs, npins, ... }: { options.zpha.programs.thunderbird.enable = lib.mkEnableOption "thunderbird"; config = lib.mkIf config.zpha.programs.thunderbird.enable { preservation.preserveAt."/persist".users.zaphyra.directories = [ ".thunderbird" ".cache/thunderbird" ]; users.users.zaphyra.maid = { packages = lib.singleton ( pkgs.thunderbird.override (old: { extraPrefsFiles = [ (pkgs.writeText "firefox-autoconfig.js" '' '') ]; nativeMessagingHosts = [ ]; extraPolicies = { # disable tracking bullshit DisableTelemetry = true; }; }) ); }; }; }