1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-21 17:59:39 +01:00

chromium: optional nativeMessagingHosts (#6515)

Should only be generating when provided
This commit is contained in:
Austin Horstman 2025-02-22 19:58:48 -08:00 committed by GitHub
parent 3b6550f710
commit ed030a7879
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -207,11 +207,12 @@ let
home.file = optionalAttrs (!isProprietaryChrome) (listToAttrs
((map extensionJson cfg.extensions)
++ (map dictionary cfg.dictionaries)) // {
"${configDir}/NativeMessagingHosts" = {
source =
"${nativeMessagingHostsJoined}/etc/chromium/native-messaging-hosts";
recursive = true;
};
"${configDir}/NativeMessagingHosts" =
lib.mkIf (cfg.nativeMessagingHosts != [ ]) {
source =
"${nativeMessagingHostsJoined}/etc/chromium/native-messaging-hosts";
recursive = true;
};
});
};