diff options
author | sefidel <contact@sefidel.net> | 2023-12-21 18:47:15 +0900 |
---|---|---|
committer | sefidel <contact@sefidel.net> | 2023-12-21 18:48:18 +0900 |
commit | 852afb1f61f2e9a473ce5b1b323e5bb3809dec12 (patch) | |
tree | e464d1019059f5dd09060136f433244579ab5e03 /home | |
parent | b0e86add0d5dbbba5a43e2ed9273cd5ef6701ada (diff) | |
download | nixrc-852afb1f61f2e9a473ce5b1b323e5bb3809dec12.tar.gz nixrc-852afb1f61f2e9a473ce5b1b323e5bb3809dec12.zip |
fix(home/browsing): don't leak token on bar
Diffstat (limited to 'home')
-rw-r--r-- | home/profiles/browsing/default.nix | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/home/profiles/browsing/default.nix b/home/profiles/browsing/default.nix index 7ee3799..0c16ca6 100644 --- a/home/profiles/browsing/default.nix +++ b/home/profiles/browsing/default.nix @@ -28,6 +28,7 @@ in enable = true; searchEngines = { + DEFAULT = "https://kagi.com/search?q={}"; g = "https://www.google.com/search?hl=en&q={}"; ddg = "https://www.duckduckgo.com/?q={}"; nw = "https://nixos.wiki/index.php?search={}"; @@ -44,6 +45,9 @@ in settings = import ./qutebrowser-settings.nix // { + url.default_page = "https://kagi.com"; + url.start_pages = "https://kagi.com"; + # mimeApps: open links in new window new_instance_open_target = "window"; } // lib.optionalAttrs (cfg.hiDpi) { @@ -51,14 +55,14 @@ in fonts.default_size = "12pt"; }; - extraConfig = '' - with open('${fixSopsPrefix 1000 config.sops.secrets.kagi-query.path}') as f: - c.url.searchengines['DEFAULT'] = f.readline() - with open('${fixSopsPrefix 1000 config.sops.secrets.kagi-session.path}') as f: - k_session = f.readline() - c.url.default_page = k_session - c.url.start_pages = k_session - ''; + # extraConfig = '' + # with open('${fixSopsPrefix 1000 config.sops.secrets.kagi-query.path}') as f: + # c.url.searchengines['DEFAULT'] = f.readline() + # with open('${fixSopsPrefix 1000 config.sops.secrets.kagi-session.path}') as f: + # k_session = f.readline() + # c.url.default_page = k_session + # c.url.start_pages = k_session + # ''; }; xdg.mimeApps = lib.mkIf pkgs.stdenv.isLinux { |