about summary refs log tree commit diff
path: root/home/modules/profiles/browsing/default.nix
blob: 8c10a5cecf089646ab2e3d86b94af85e97db291a (plain)
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
{ config, lib, pkgs, ... }:
let cfg = config.profiles.browsing;
in
  {
    options.profiles.browsing = {
      enable = lib.mkEnableOption
        "A profile that enables a browser for the GUI and the terminal";
      };

    config = lib.mkIf cfg.enable {
      home.packages = with pkgs; [ lynx ];

      programs.qutebrowser = {
        enable = true;

        searchEngines = {
          g = "https://www.google.com/search?hl=en&q={}";
          nw = "https://nixos.wiki/index.php?search={}";
          no = "https://search.nixos.org/options?channel=unstable&from=0size=50&sort=relevance&type=packages&query={}";
        };

        quickmarks = {
          github = "https://github.com";
          sourcehut = "https://sr.ht";
        };

        settings = import ./qutebrowser-settings.nix;
      };
    };
  }