From d5d579e5adbf2fd0757ac088247e95a8f6988b04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laure=CE=B7t?= Date: Mon, 11 Dec 2023 14:17:29 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20(hydrogen/home)=20add=20xdg=20mime?= =?UTF-8?q?=20types?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hosts/neodymium/home/default.nix | 1 + hosts/neodymium/home/xdg/default.nix | 36 ++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 hosts/neodymium/home/xdg/default.nix diff --git a/hosts/neodymium/home/default.nix b/hosts/neodymium/home/default.nix index 3f9a7d4..1ce0d5c 100644 --- a/hosts/neodymium/home/default.nix +++ b/hosts/neodymium/home/default.nix @@ -12,5 +12,6 @@ ./shell ./vscode ./wayland + ./xdg ]; } diff --git a/hosts/neodymium/home/xdg/default.nix b/hosts/neodymium/home/xdg/default.nix new file mode 100644 index 0000000..24a3f0f --- /dev/null +++ b/hosts/neodymium/home/xdg/default.nix @@ -0,0 +1,36 @@ +{ ... }: { + xdg.mimeApps = { + enable = true; + + defaultApplications = { + # librewolf + "text/html" = "librewolf.desktop"; + "x-scheme-handler/http" = "librewolf.desktop"; + "x-scheme-handler/https" = "librewolf.desktop"; + "x-scheme-handler/about" = "librewolf.desktop"; + "x-scheme-handler/unknown" = "librewolf.desktop"; + "application/pdf" = "librewolf.desktop"; + "image/png" = "librewolf.desktop"; + "image/jpeg" = "librewolf.desktop"; + "image/gif" = "librewolf.desktop"; + + # vscode + "text/plain" = "code.desktop"; + "text/x-python" = "code.desktop"; + "application/json" = "code.desktop"; + "application/yaml" = "code.desktop"; + "application/xml" = "code.desktop"; + "application/javascript" = "code.desktop"; + "text/css" = "code.desktop"; + + # mpv + "video/mpeg" = "mpv.desktop"; + "video/mp4" = "mpv.desktop"; + "video/x-matroska" = "mpv.desktop"; + + # thunderbird + "text/calendar" = "thunderbird.desktop"; + "text/x-vcard" = "thunderbird.desktop"; + }; + }; +}