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