diff options
author | sefidel <contact@sefidel.net> | 2023-08-09 12:29:39 +0900 |
---|---|---|
committer | sefidel <contact@sefidel.net> | 2023-08-09 12:29:39 +0900 |
commit | c30d7b4150e21e6e6533328e6f382ac07d599fd3 (patch) | |
tree | 45200d0609f414522a795419536d5d4de30b1cd4 | |
parent | 85ce5ca43162a388a794ad135bc96e3296db1160 (diff) | |
download | nixrc-c30d7b4150e21e6e6533328e6f382ac07d599fd3.tar.gz nixrc-c30d7b4150e21e6e6533328e6f382ac07d599fd3.zip |
feat(home/browsing): use qutebrowser for xdg-open
-rw-r--r-- | home/profiles/browsing/default.nix | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/home/profiles/browsing/default.nix b/home/profiles/browsing/default.nix index da69908..54a44fc 100644 --- a/home/profiles/browsing/default.nix +++ b/home/profiles/browsing/default.nix @@ -38,5 +38,16 @@ in url.start_pages = "https://searx.be"; }; }; + + xdg.mimeApps = lib.mkIf pkgs.stdenv.isLinux { + enable = true; + defaultApplications = { + "x-scheme-handler/http" = [ "org.qutebrowser.qutebrowser.desktop" ]; + "x-scheme-handler/https" = [ "org.qutebrowser.qutebrowser.desktop" ]; + "text/html" = [ "org.qutebrowser.qutebrowser.desktop" ]; + "x-scheme-handler/about" = [ "org.qutebrowser.qutebrowser.desktop" ]; + "x-scheme-handler/unknown" = [ "org.qutebrowser.qutebrowser.desktop" ]; + }; + }; }; } |