mirror of
https://github.com/nix-community/home-manager
synced 2024-12-26 19:59:47 +01:00
e1aec543f5
* firefox: split search into separate submodule file * thunderbird: support setting search engines
50 lines
1.3 KiB
Nix
50 lines
1.3 KiB
Nix
{ lib, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
|
|
modulePath = [ "programs" "firefox" ];
|
|
|
|
moduleName = concatStringsSep "." modulePath;
|
|
|
|
mkFirefoxModule = import ./firefox/mkFirefoxModule.nix;
|
|
|
|
in {
|
|
meta.maintainers = [ maintainers.rycee hm.maintainers.bricked ];
|
|
|
|
imports = [
|
|
(mkFirefoxModule {
|
|
inherit modulePath;
|
|
name = "Firefox";
|
|
wrappedPackageName = "firefox";
|
|
unwrappedPackageName = "firefox-unwrapped";
|
|
visible = true;
|
|
|
|
platforms.linux = rec {
|
|
vendorPath = ".mozilla";
|
|
configPath = "${vendorPath}/firefox";
|
|
};
|
|
platforms.darwin = {
|
|
vendorPath = "Library/Application Support/Mozilla";
|
|
configPath = "Library/Application Support/Firefox";
|
|
};
|
|
})
|
|
|
|
(mkRemovedOptionModule (modulePath ++ [ "extensions" ]) ''
|
|
|
|
Extensions are now managed per-profile. That is, change from
|
|
|
|
${moduleName}.extensions = [ foo bar ];
|
|
|
|
to
|
|
|
|
${moduleName}.profiles.myprofile.extensions = [ foo bar ];'')
|
|
(mkRemovedOptionModule (modulePath ++ [ "enableAdobeFlash" ])
|
|
"Support for this option has been removed.")
|
|
(mkRemovedOptionModule (modulePath ++ [ "enableGoogleTalk" ])
|
|
"Support for this option has been removed.")
|
|
(mkRemovedOptionModule (modulePath ++ [ "enableIcedTea" ])
|
|
"Support for this option has been removed.")
|
|
];
|
|
}
|