1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-01 04:23:34 +02:00

firefox: add librewolf path handling

This commit is contained in:
tilcreator 2024-01-11 19:08:35 +01:00
parent e84811035d
commit 697dfcd49a

View File

@ -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;