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:
parent
921b59fa40
commit
8beb27389a
6 changed files with 212 additions and 783 deletions
|
@ -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;
|
||||
})
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue