1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-14 02:33:38 +02:00
This commit is contained in:
TilCreator 2024-05-01 18:38:43 +05:45 committed by GitHub
commit fcdb8e2829
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -10,13 +10,15 @@ let
jsonFormat = pkgs.formats.json { }; jsonFormat = pkgs.formats.json { };
mozillaConfigPath = isLibrewolf = cfg.package.meta.mainProgram == "librewolf";
if isDarwin then "Library/Application Support/Mozilla" else ".mozilla";
firefoxConfigPath = if isDarwin then firefoxConfigPath = if isLibrewolf then
"Library/Application Support/Firefox" (if isDarwin then "Library/Application Support/Librewolf" else ".librewolf")
else else
"${mozillaConfigPath}/firefox"; (if isDarwin then
"Library/Application Support/Firefox"
else
".mozilla/firefox");
profilesPath = profilesPath =
if isDarwin then "${firefoxConfigPath}/Profiles" else firefoxConfigPath; if isDarwin then "${firefoxConfigPath}/Profiles" else firefoxConfigPath;