refactor(home): replace custom Firefox module with home-manager's new mkFirefoxModule

- 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`
This commit is contained in:
Felix Schröter 2025-02-13 23:00:00 +01:00
parent 921b59fa40
commit 8beb27389a
Signed by: felschr
GPG key ID: 671E39E6744C807D
6 changed files with 212 additions and 783 deletions

View file

@ -1,18 +1,20 @@
{
config,
lib,
pkgs,
...
}:
_:
let
common = import ./common.nix { inherit config lib pkgs; };
mkFirefoxProfileBinModule = import ./mkFirefoxProfileBinModule.nix;
modulePath = [
"programs"
"firefox"
];
name = "Firefox";
packageName = "firefox";
in
common.mkModule {
name = "firefox";
displayName = "Firefox";
dataConfigPath = ".mozilla/firefox";
defaultPackage = pkgs.firefox;
defaultPackageName = "pkgs.firefox";
isSecure = false;
{
imports = [
(mkFirefoxProfileBinModule {
inherit modulePath name packageName;
isSecure = true;
})
];
}