diff --git a/modules/programs/firefox.nix b/modules/programs/firefox.nix index 2ce67776..88dcbb27 100644 --- a/modules/programs/firefox.nix +++ b/modules/programs/firefox.nix @@ -10,13 +10,15 @@ let jsonFormat = pkgs.formats.json { }; - mozillaConfigPath = - if isDarwin then "Library/Application Support/Mozilla" else ".mozilla"; + isLibrewolf = cfg.package.meta.mainProgram == "librewolf"; - firefoxConfigPath = if isDarwin then - "Library/Application Support/Firefox" + firefoxConfigPath = if isLibrewolf then + (if isDarwin then "Library/Application Support/Librewolf" else ".librewolf") else - "${mozillaConfigPath}/firefox"; + (if isDarwin then + "Library/Application Support/Firefox" + else + ".mozilla/firefox"); profilesPath = if isDarwin then "${firefoxConfigPath}/Profiles" else firefoxConfigPath;