nixos/firefox: dedupe identically nativeMessageHosts packages
This commit is contained in:
parent
b5cd423a36
commit
18135de79a
@ -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;
|
||||
}))
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user