{
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";
};
};
};
};
}