aboutsummaryrefslogtreecommitdiffstats
path: root/modules/hm/sils/firefox/default.nix
blob: 2ee593dacb466968d0e61af8019fce6e668ef7cd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{
  config,
  lib,
  ...
}: let
  cfg = config.sils.home.firefox;
in {
  options.sils.home.firefox = {
    enable = lib.mkEnableOption "opinionated firefox configuration";
  };
  config = lib.mkIf cfg.enable {
    programs.firefox = {
      enable = true;
      profiles = {
        "default" = {
          id = 0;
          isDefault = true;
          name = "default";
          search = {
            default = "DuckDuckGo";
            privateDefault = "DuckDuckGo";
            force = true;
          };
        };
      };
    };
  };
}