- replaced core module with `mkFirefoxModule` from home-manager - `mkFirefoxModuleCompat` was created as a wrapper around `mkFirefoxModule` for compatibility with other Firefox-based browser packages such as Tor/Mullvad Browser - profile binary & desktop file creation moved into `mkFirefoxProfileBinModule`
18 lines
350 B
Nix
18 lines
350 B
Nix
{ lib, ... }:
|
|
|
|
let
|
|
userPrefValue =
|
|
pref:
|
|
builtins.toJSON (
|
|
if lib.isBool pref || lib.isInt pref || lib.isString pref then pref else builtins.toJSON pref
|
|
);
|
|
in
|
|
{
|
|
mkConfig =
|
|
prefs:
|
|
lib.concatStrings (
|
|
lib.mapAttrsToList (name: value: ''
|
|
user_pref("${name}", ${userPrefValue value});
|
|
'') prefs
|
|
);
|
|
}
|