mirror of
https://github.com/nix-community/home-manager
synced 2024-12-25 03:09:47 +01:00
firefox: fix darwin NativeMessagingHostsPath
This commit is contained in:
parent
dbeda6b012
commit
ea828da724
1 changed files with 7 additions and 1 deletions
|
@ -21,6 +21,11 @@ let
|
||||||
profilesPath =
|
profilesPath =
|
||||||
if isDarwin then "${firefoxConfigPath}/Profiles" else firefoxConfigPath;
|
if isDarwin then "${firefoxConfigPath}/Profiles" else firefoxConfigPath;
|
||||||
|
|
||||||
|
nativeMessagingHostsPath = if isDarwin then
|
||||||
|
"${mozillaConfigPath}/NativeMessagingHosts"
|
||||||
|
else
|
||||||
|
"${mozillaConfigPath}/native-messaging-hosts";
|
||||||
|
|
||||||
nativeMessagingHostsJoined = pkgs.symlinkJoin {
|
nativeMessagingHostsJoined = pkgs.symlinkJoin {
|
||||||
name = "ff_native-messaging-hosts";
|
name = "ff_native-messaging-hosts";
|
||||||
paths = [
|
paths = [
|
||||||
|
@ -734,7 +739,8 @@ in {
|
||||||
home.file = mkMerge ([{
|
home.file = mkMerge ([{
|
||||||
"${firefoxConfigPath}/profiles.ini" =
|
"${firefoxConfigPath}/profiles.ini" =
|
||||||
mkIf (cfg.profiles != { }) { text = profilesIni; };
|
mkIf (cfg.profiles != { }) { text = profilesIni; };
|
||||||
"${mozillaConfigPath}/native-messaging-hosts" = {
|
|
||||||
|
"${nativeMessagingHostsPath}" = {
|
||||||
source =
|
source =
|
||||||
"${nativeMessagingHostsJoined}/lib/mozilla/native-messaging-hosts";
|
"${nativeMessagingHostsJoined}/lib/mozilla/native-messaging-hosts";
|
||||||
recursive = true;
|
recursive = true;
|
||||||
|
|
Loading…
Reference in a new issue