feat: set zen browser as default for mime types

This commit is contained in:
Youwen Wu 2024-08-26 20:52:30 -07:00
parent e33581b476
commit e27f42a25c
Signed by: youwen5
GPG key ID: 865658ED1FE61EC3

View file

@ -4,16 +4,33 @@
...
}: let
createCommon = import ../common-packages.nix;
zen-browser = inputs.zen-browser.packages.${pkgs.system}.specific;
in {
home.packages =
(createCommon pkgs)
++ (with pkgs; [
++ (with pkgs;
[
bitwarden-desktop
modrinth-app
lutris
wine
sbctl
r2modman
inputs.zen-browser.packages.${pkgs.system}.specific
]);
]
++ [zen-browser]);
xdg.mimeApps = {
enable = true;
defaultApplications = {
"text/html" = ["zen.desktop"];
"x-scheme-handler/http" = ["dev.zen.Zen.desktop"];
"x-scheme-handler/https" = ["dev.zen.Zen.desktop"];
"x-scheme-handler/about" = ["dev.zen.Zen.desktop"];
"x-scheme-handler/unknown" = ["dev.zen.Zen.desktop"];
};
};
home.sessionVariables = {
DEFAULT_BROWSER = "${zen-browser}/bin/zen-bin";
};
}