mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-21 17:59:39 +01:00
55 lines
1.3 KiB
Nix
55 lines
1.3 KiB
Nix
{ lib, ... }:
|
|
let
|
|
inherit (lib) mkRemovedOptionModule;
|
|
|
|
modulePath = [
|
|
"programs"
|
|
"firefox"
|
|
];
|
|
|
|
moduleName = lib.concatStringsSep "." modulePath;
|
|
|
|
mkFirefoxModule = import ./firefox/mkFirefoxModule.nix;
|
|
in
|
|
{
|
|
meta.maintainers = [
|
|
lib.maintainers.rycee
|
|
lib.hm.maintainers.bricked
|
|
lib.hm.maintainers.HPsaucii
|
|
];
|
|
|
|
imports = [
|
|
(mkFirefoxModule {
|
|
inherit modulePath;
|
|
name = "Firefox";
|
|
wrappedPackageName = "firefox";
|
|
unwrappedPackageName = "firefox-unwrapped";
|
|
visible = true;
|
|
|
|
platforms.linux = {
|
|
configPath = ".mozilla/firefox";
|
|
};
|
|
platforms.darwin = {
|
|
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.packages = [ 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.")
|
|
];
|
|
}
|