This commit is contained in:
2025-12-07 19:04:23 +03:00
parent 978060c5ef
commit 8c848be9e2
7 changed files with 187 additions and 33 deletions
+27
View File
@@ -35,4 +35,31 @@
imports = [ inputs.zen-browser.homeModules.twilight ];
programs.zen-browser = { enable = true; };
xdg.mimeApps = let
value = let
system = pkgs.stdenv.hostPlatform.system;
zen-browser = inputs.zen-browser.packages.${system}.twilight;
in zen-browser.meta.desktopFileName;
associations = builtins.listToAttrs (map (name: { inherit name value; }) [
"application/x-extension-shtml"
"application/x-extension-xhtml"
"application/x-extension-html"
"application/x-extension-xht"
"application/x-extension-htm"
"x-scheme-handler/unknown"
"x-scheme-handler/mailto"
"x-scheme-handler/chrome"
"x-scheme-handler/about"
"x-scheme-handler/https"
"x-scheme-handler/http"
"application/xhtml+xml"
"application/json"
"text/html"
]);
in {
associations.added = associations;
defaultApplications = associations;
};
}