2024-03-12 23:20:41 +00:00
|
|
|
{ lib, ... }:
|
2017-01-10 23:36:43 +00:00
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
|
2024-03-12 23:20:41 +00:00
|
|
|
modulePath = [ "programs" "firefox" ];
|
2019-12-28 22:28:21 +00:00
|
|
|
|
2024-03-12 23:20:41 +00:00
|
|
|
moduleName = concatStringsSep "." modulePath;
|
2017-01-10 23:36:43 +00:00
|
|
|
|
2024-03-12 23:20:41 +00:00
|
|
|
mkFirefoxModule = import ./firefox/mkFirefoxModule.nix;
|
2022-05-28 00:01:44 +00:00
|
|
|
|
2024-03-12 23:20:41 +00:00
|
|
|
in {
|
2024-10-14 11:01:26 +00:00
|
|
|
meta.maintainers = [ maintainers.rycee hm.maintainers.bricked ];
|
2021-09-29 06:39:17 +00:00
|
|
|
|
2024-03-12 23:20:41 +00:00
|
|
|
imports = [
|
|
|
|
(mkFirefoxModule {
|
|
|
|
inherit modulePath;
|
|
|
|
name = "Firefox";
|
|
|
|
wrappedPackageName = "firefox";
|
|
|
|
unwrappedPackageName = "firefox-unwrapped";
|
|
|
|
visible = true;
|
2019-05-24 07:08:56 +00:00
|
|
|
|
2024-03-12 23:20:41 +00:00
|
|
|
platforms.linux = rec {
|
|
|
|
vendorPath = ".mozilla";
|
|
|
|
configPath = "${vendorPath}/firefox";
|
2023-10-13 06:34:32 +00:00
|
|
|
};
|
2024-03-12 23:20:41 +00:00
|
|
|
platforms.darwin = {
|
|
|
|
vendorPath = "Library/Application Support/Mozilla";
|
|
|
|
configPath = "Library/Application Support/Firefox";
|
|
|
|
};
|
|
|
|
})
|
2017-09-26 21:40:31 +00:00
|
|
|
|
2024-03-12 23:20:41 +00:00
|
|
|
(mkRemovedOptionModule (modulePath ++ [ "extensions" ]) ''
|
2023-02-05 22:53:25 +00:00
|
|
|
|
|
|
|
Extensions are now managed per-profile. That is, change from
|
|
|
|
|
2024-03-12 23:20:41 +00:00
|
|
|
${moduleName}.extensions = [ foo bar ];
|
2023-02-05 22:53:25 +00:00
|
|
|
|
|
|
|
to
|
|
|
|
|
2024-03-12 23:20:41 +00:00
|
|
|
${moduleName}.profiles.myprofile.extensions = [ foo bar ];'')
|
|
|
|
(mkRemovedOptionModule (modulePath ++ [ "enableAdobeFlash" ])
|
2021-02-09 04:37:24 +00:00
|
|
|
"Support for this option has been removed.")
|
2024-03-12 23:20:41 +00:00
|
|
|
(mkRemovedOptionModule (modulePath ++ [ "enableGoogleTalk" ])
|
2020-04-18 09:21:24 +00:00
|
|
|
"Support for this option has been removed.")
|
2024-03-12 23:20:41 +00:00
|
|
|
(mkRemovedOptionModule (modulePath ++ [ "enableIcedTea" ])
|
2020-04-18 09:21:24 +00:00
|
|
|
"Support for this option has been removed.")
|
|
|
|
];
|
2017-01-10 23:36:43 +00:00
|
|
|
}
|