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