mirror of
https://github.com/youwen5/nixos.git
synced 2024-11-25 02:03:51 -08:00
feat: set zen browser as default for mime types
This commit is contained in:
parent
e33581b476
commit
e27f42a25c
1 changed files with 26 additions and 9 deletions
|
@ -4,16 +4,33 @@
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
createCommon = import ../common-packages.nix;
|
createCommon = import ../common-packages.nix;
|
||||||
|
zen-browser = inputs.zen-browser.packages.${pkgs.system}.specific;
|
||||||
in {
|
in {
|
||||||
home.packages =
|
home.packages =
|
||||||
(createCommon pkgs)
|
(createCommon pkgs)
|
||||||
++ (with pkgs; [
|
++ (with pkgs;
|
||||||
bitwarden-desktop
|
[
|
||||||
modrinth-app
|
bitwarden-desktop
|
||||||
lutris
|
modrinth-app
|
||||||
wine
|
lutris
|
||||||
sbctl
|
wine
|
||||||
r2modman
|
sbctl
|
||||||
inputs.zen-browser.packages.${pkgs.system}.specific
|
r2modman
|
||||||
]);
|
]
|
||||||
|
++ [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";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue