mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-14 03:10:07 +00:00
firefox/wrapper: add appDataDir argument
This is immediately helpful on MacOS 27+ where access to default datadir
is now restricted to apps that are signed by Mozilla.
Moving datadir to a new location implies a completely new profile will
be created, unless users migrate their datadirs from the default
location to the new one. Nixpkgs derivation cannot execute this
migration for the users, nor it includes any tools to help with it. For
this reason, users on 27+ will have to explicitly opt-in their firefox
to use a new location, potentially also migrating their existing
datadir beforehand.
I expect Home Manager programs.firefox module to allow to set the
argument to:
${cfg.home.homeDirectory}/Library/Application Support/org.nixos.firefox
Other package consumers are advised to use the same directory for
portability reasons.
Fixes #535123
This commit is contained in:
@@ -71,6 +71,7 @@ let
|
||||
pkcs11Modules ? [ ],
|
||||
useGlvnd ? (!isDarwin),
|
||||
cfg ? config.${applicationName} or { },
|
||||
appDataDir ? null,
|
||||
|
||||
## Following options are needed for extra prefs & policies
|
||||
# For more information about anti tracking (german website)
|
||||
@@ -334,6 +335,11 @@ let
|
||||
"MOZ_ALLOW_DOWNGRADE"
|
||||
"1"
|
||||
]
|
||||
++ lib.optionals (appDataDir != null) [
|
||||
"--set"
|
||||
"MOZ_APP_DATA"
|
||||
appDataDir
|
||||
]
|
||||
++ lib.optionals (!isDarwin) [
|
||||
"--suffix"
|
||||
"GTK_PATH"
|
||||
|
||||
Reference in New Issue
Block a user