diff --git a/home-manager/modules/gui/default.nix b/home-manager/modules/gui/default.nix index b94bb32..be247ac 100644 --- a/home-manager/modules/gui/default.nix +++ b/home-manager/modules/gui/default.nix @@ -1,6 +1,6 @@ { lib, pkgs, config, ... }: let - inherit (lib) mkIf mkMerge mkForce; + inherit (lib) genAttrs mkIf mkMerge mkForce; inherit (lib.my) mkBoolOpt'; cfg = config.my.gui; @@ -270,6 +270,19 @@ in }); }; }; + + xdg = { + mimeApps = { + enable = true; + defaultApplications = genAttrs [ + "text/html" + "x-scheme-handler/http" + "x-scheme-handler/https" + "x-scheme-handler/about" + "x-scheme-handler/unknown" + ] (_: "chromium-browser.desktop"); + }; + }; }) (mkIf (cfg.standalone && !pkgs.stdenv.isDarwin) {