blob: 5b6ea42fd54409d5be743401da7483da0932e073 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
{ config, inputs, system, ... }:
{
environment.systemPackages = [
inputs.zen-browser.packages."${system}".default
];
xdg.mime = let
value = let
zen-browser = inputs.zen-browser.packages.${system}.default;
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"
"application/pdf"
"text/plain"
"text/html"
]);
in {
defaultApplications = associations;
};
}
|