1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-01 08:49:44 +01:00
home-manager/modules/programs/firefox.nix

51 lines
1.3 KiB
Nix
Raw Normal View History

{ lib, ... }:
2017-01-11 00:36:43 +01:00
with lib;
let
modulePath = [ "programs" "firefox" ];
2019-12-28 23:28:21 +01:00
moduleName = concatStringsSep "." modulePath;
2017-01-11 00:36:43 +01:00
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;
2019-05-24 09:08:56 +02:00
platforms.linux = rec {
vendorPath = ".mozilla";
configPath = "${vendorPath}/firefox";
2023-10-13 08:34:32 +02:00
};
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.")
];
2017-01-11 00:36:43 +01:00
}