This repository has been archived on 2024-07-08. You can view files and clone it, but cannot push or open issues or pull requests.
nix-config-tn/nixos/home/modules/programs/browsers/firefox/default.nix

40 lines
764 B
Nix
Raw Normal View History

2024-03-31 05:40:20 -05:00
{ lib
, config
, self
, pkgs
, osConfig
, ...
}:
with lib;
let
cfg = config.myHome.programs.firefox;
in
{
options.myHome.programs.firefox.enable = mkEnableOption "Firefox";
config = mkIf cfg.enable {
programs.firefox = {
enable = true;
package = pkgs.firefox.override
{
extraPolicies = {
DontCheckDefaultBrowser = true;
DisablePocket = true;
# See nixpkgs' firefox/wrapper.nix to check which options you can use
nativeMessagingHosts = [
# Gnome shell native connector
pkgs.gnome-browser-connector
# plasma connector
# plasma5Packages.plasma-browser-integration
];
};
};
};
};
}