Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions modules/programs/firefox.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,21 @@ let

jsonFormat = pkgs.formats.json { };

isLibrewolf = cfg.package.meta.mainProgram == "librewolf";

mozillaConfigPath =
Comment thread
TilCreator marked this conversation as resolved.
if isDarwin then "Library/Application Support/Mozilla" else ".mozilla";
if isLibrewolf then
(if isDarwin then "Library/Application Support/Librewolf" else ".librewolf")
else
(if isDarwin then "Library/Application Support/Mozilla" else ".mozilla");

firefoxConfigPath = if isDarwin then
"Library/Application Support/Firefox"
firefoxConfigPath = if isLibrewolf then
mozillaConfigPath
else
"${mozillaConfigPath}/firefox";
(if isDarwin then
"Library/Application Support/Firefox"
else
"${mozillaConfigPath}/firefox");

profilesPath =
if isDarwin then "${firefoxConfigPath}/Profiles" else firefoxConfigPath;
Expand Down