thunderbird: support setting search engines

This commit is contained in:
Kira Bruneau 2024-07-31 19:43:02 -04:00
parent b646398921
commit 67b1242263

View file

@ -210,6 +210,20 @@ in {
Extra preferences to add to {file}`user.js`. Extra preferences to add to {file}`user.js`.
''; '';
}; };
search = mkOption {
type = types.submodule (args:
import ./firefox/profiles/search.nix {
inherit (args) config;
inherit lib pkgs;
appName = "Thunderbird";
modulePath =
[ "programs" "thunderbird" "profiles" name "search" ];
profilePath = name;
});
default = { };
description = "Declarative search engine configuration.";
};
}; };
})); }));
description = "Attribute set of Thunderbird profiles."; description = "Attribute set of Thunderbird profiles.";
@ -378,6 +392,12 @@ in {
] ++ (map (a: toThunderbirdAccount a profile) accounts))) ] ++ (map (a: toThunderbirdAccount a profile) accounts)))
profile.extraConfig; profile.extraConfig;
}; };
"${thunderbirdProfilesPath}/${name}/search.json.mozlz4" = {
enable = profile.search.enable;
force = profile.search.force;
source = profile.search.file;
};
})); }));
}; };
} }