2021-07-29 12:17:41 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
let
|
2022-01-11 16:08:21 +01:00
|
|
|
inherit (lib)
|
|
|
|
mkEnableOption
|
|
|
|
mkIf
|
|
|
|
;
|
|
|
|
|
2021-07-29 12:17:41 +02:00
|
|
|
cfg = config.my.home.firefox;
|
|
|
|
in
|
|
|
|
{
|
2022-01-11 16:08:21 +01:00
|
|
|
options.my.home.firefox = {
|
2021-07-29 12:17:41 +02:00
|
|
|
enable = (mkEnableOption "firefox config") // { default = config.my.home.x.enable; };
|
|
|
|
};
|
|
|
|
|
2022-01-11 16:08:21 +01:00
|
|
|
config = mkIf cfg.enable {
|
2021-07-29 12:17:41 +02:00
|
|
|
programs.firefox = {
|
|
|
|
enable = true;
|
2021-08-19 23:34:41 +02:00
|
|
|
package = pkgs.firefox.override {
|
2021-07-29 12:17:41 +02:00
|
|
|
cfg = {
|
|
|
|
enableTridactylNative = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|