mochi/nixos/home/modules/programs/browsers/firefox/default.nix

26 lines
525 B
Nix
Raw Normal View History

2024-12-27 21:30:25 -06:00
{
lib,
config,
pkgs,
...
}:
with lib; let
2024-06-20 08:59:56 -05:00
cfg = config.myHome.programs.firefox;
in {
2024-06-20 08:59:56 -05:00
options.myHome.programs.firefox.enable = mkEnableOption "Firefox";
2024-12-27 21:30:25 -06:00
config = mkIf cfg.enable {
programs.firefox = {
enable = true;
package = pkgs.firefox.override {
extraPolicies = {
DontCheckDefaultBrowser = true;
DisablePocket = true;
};
2024-06-20 08:59:56 -05:00
};
2024-12-27 21:30:25 -06:00
policies = import ./policies.nix;
profiles.default = import ./profile-default.nix {inherit pkgs;};
2024-06-20 08:59:56 -05:00
};
2024-12-27 21:30:25 -06:00
};
2024-06-20 08:59:56 -05:00
}