DEVELOPMENT ENVIRONMENT

~liljamo/nix-arta

ref: f48b7a537cb4dfec93e189375a73658f7ec6c63a nix-arta/roles/qutebrowser.nix -rw-r--r-- 1.2 KiB
f48b7a53Jonni Liljamo feat(roles/qutebrowser, hosts/arwen): qutebrowser role and add to arwen 4 months ago
                                                                                
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{
  config,
  lib,
  ...
}: let
  cfg = config.roles.qutebrowser;
in {
  options.roles.qutebrowser = {
    enable = lib.mkEnableOption "";
  };

  config = lib.mkIf cfg.enable {
    hm.programs.qutebrowser = {
      enable = true;
      quickmarks = {
        nixpkgs = "https://github.com/nixos/nixpkgs";
        home-manager-options = "https://nix-community.github.io/home-manager/options.xhtml";
      };
      searchEngines = {
        DEFAULT = "https://www.startpage.com/sp/search?query={}";
      };
      # https://qutebrowser.org/doc/help/settings.html
      settings = {
        auto_save.session = true;
        colors.webpage.preferred_color_scheme = "light";
        content = {
          blocking = {
            enabled = true;
            method = "auto";
          };
          cookies = {
            accept = "no-3rdparty";
            store = false;
          };
          dns_prefetch = false;
          geolocation = false;
          headers = {
            do_not_track = true;
            referer = "never";
          };
        };
        downloads.remove_finished = 60000;
        url = {
          default_page = "about:blank";
          start_pages = "about:blank";
        };
      };
    };
  };
}