services/bleachbit: make cleaners list unique

This commit is contained in:
Gabriel Arazas 2023-12-12 09:58:49 +08:00
parent 53f293919a
commit f3f896d769
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC

View File

@ -3,7 +3,7 @@
let
cfg = config.services.bleachbit;
cleaners = cfg.cleaners ++ lib.optionals cfg.withBrowserCleanup [
cleaners = lib.lists.unique (cfg.cleaners ++ lib.optionals cfg.withBrowserCleanup [
"brave.cache"
"brave.form_history"
"brave.history"
@ -46,7 +46,7 @@ let
"thunderbird.index"
"thunderbird.passwords"
"thunderbird.sessionjson"
];
]);
in
{
options.services.bleachbit = {