From 697dfcd49a3ba4bd6b5e85a7aa0b06b169e82d75 Mon Sep 17 00:00:00 2001 From: tilcreator Date: Thu, 11 Jan 2024 19:08:35 +0100 Subject: [PATCH] firefox: add librewolf path handling --- modules/programs/firefox.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/modules/programs/firefox.nix b/modules/programs/firefox.nix index 2ce67776d..88dcbb27d 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;