summaryrefslogtreecommitdiffstats
path: root/modules/hm/sils/firefox/default.nix
blob: 6f582c289a0ceeb2a62767a51f68e9dcaa7d4295 (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
29
30
31
32
33
34
35
{
  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" = {
          containers = {
            banking = {
              color = "green";
              icon = "dollar";
              id = 0;
            };
          };
          id = 0;
          isDefault = true;
          name = "default";
          search = {
            default = "DuckDuckGo";
            privateDefault = "DuckDuckGo";
            force = true;
          };
        };
      };
    };
  };
}