From 18135de79a9630f01c1df91865e3fd06ff954cdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sat, 17 Aug 2024 00:09:24 +0200 Subject: [PATCH] nixos/firefox: dedupe identically nativeMessageHosts packages --- nixos/modules/programs/firefox.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nixos/modules/programs/firefox.nix b/nixos/modules/programs/firefox.nix index ed874cad74e4..8229affb1ad9 100644 --- a/nixos/modules/programs/firefox.nix +++ b/nixos/modules/programs/firefox.nix @@ -313,7 +313,9 @@ in old.extraPrefsFiles or [ ] ++ cfg.autoConfigFiles ++ [ (pkgs.writeText "firefox-autoconfig.js" cfg.autoConfig) ]; - nativeMessagingHosts = old.nativeMessagingHosts or [ ] ++ cfg.nativeMessagingHosts.packages; + nativeMessagingHosts = lib.unique ( + old.nativeMessagingHosts or [ ] ++ cfg.nativeMessagingHosts.packages + ); cfg = (old.cfg or { }) // cfg.wrapperConfig; })) ];