nixos-config/home/firefox.nix

30 lines
470 B
Nix
Raw Permalink Normal View History

2022-04-10 11:54:58 +02:00
{
config,
lib,
pkgs,
...
}: let
inherit
(lib)
2022-01-11 16:08:21 +01:00
mkEnableOption
mkIf
2022-04-10 11:54:58 +02:00
;
2022-01-11 16:08:21 +01:00
2021-07-29 12:17:41 +02:00
cfg = config.my.home.firefox;
2022-04-10 11:54:58 +02:00
in {
2022-01-11 16:08:21 +01:00
options.my.home.firefox = {
2022-04-10 11:54:58 +02:00
enable = (mkEnableOption "firefox config") // {default = config.my.home.x.enable;};
2021-07-29 12:17:41 +02:00
};
2022-01-11 16:08:21 +01:00
config = mkIf cfg.enable {
2021-07-29 12:17:41 +02:00
programs.firefox = {
enable = true;
package = pkgs.firefox.override {
nativeMessagingHosts = [
pkgs.tridactyl-native
];
2021-07-29 12:17:41 +02:00
};
};
};
}