From ea828da724297161960b130d04363a7d00e51f45 Mon Sep 17 00:00:00 2001 From: mlyxshi Date: Sun, 28 Jan 2024 18:45:17 +0900 Subject: [PATCH] firefox: fix darwin NativeMessagingHostsPath --- modules/programs/firefox.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/programs/firefox.nix b/modules/programs/firefox.nix index fcf12b02f..8ce84fcba 100644 --- a/modules/programs/firefox.nix +++ b/modules/programs/firefox.nix @@ -21,6 +21,11 @@ let profilesPath = if isDarwin then "${firefoxConfigPath}/Profiles" else firefoxConfigPath; + nativeMessagingHostsPath = if isDarwin then + "${mozillaConfigPath}/NativeMessagingHosts" + else + "${mozillaConfigPath}/native-messaging-hosts"; + nativeMessagingHostsJoined = pkgs.symlinkJoin { name = "ff_native-messaging-hosts"; paths = [ @@ -734,7 +739,8 @@ in { home.file = mkMerge ([{ "${firefoxConfigPath}/profiles.ini" = mkIf (cfg.profiles != { }) { text = profilesIni; }; - "${mozillaConfigPath}/native-messaging-hosts" = { + + "${nativeMessagingHostsPath}" = { source = "${nativeMessagingHostsJoined}/lib/mozilla/native-messaging-hosts"; recursive = true;