From 5ce320766af69e0462264813cc92d242ce3323aa Mon Sep 17 00:00:00 2001 From: jacekpoz Date: Fri, 21 Jul 2023 07:25:58 +0200 Subject: [PATCH] all the xdg types imaginable (not really) --- homes/jacek/other/default.nix | 5 ++++ homes/jacek/other/xdg/default.nix | 50 +++++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 homes/jacek/other/default.nix create mode 100644 homes/jacek/other/xdg/default.nix diff --git a/homes/jacek/other/default.nix b/homes/jacek/other/default.nix new file mode 100644 index 0000000..9cdfeac --- /dev/null +++ b/homes/jacek/other/default.nix @@ -0,0 +1,5 @@ +_: { + imports = [ + ./xdg + ]; +} diff --git a/homes/jacek/other/xdg/default.nix b/homes/jacek/other/xdg/default.nix new file mode 100644 index 0000000..e96f78d --- /dev/null +++ b/homes/jacek/other/xdg/default.nix @@ -0,0 +1,50 @@ +{ + config, + pkgs, + ... +}: { + config = { + xdg.mime = { + enable = true; + defaultApplications = { + "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" ]; + "x-scheme-handler/mailto" = [ "thunderbird.desktop" ]; + "message/rfc822" = [ "thunderbird.desktop" ]; + "x-scheme-handler/mid" = [ "thunderbird.desktop" ]; + "inode/directory" = [ "thunar.desktop" ]; + "x-scheme-handler/heroic" = [ "heroic.desktop" ]; + "audio/mp3" = [ "mpv.desktop" ]; + "audio/ogg" = [ "mpv.desktop" ]; + "audio/mpeg" = [ "mpv.desktop" ]; + "audio/aac" = [ "mpv.desktop" ]; + "audio/opus" = [ "mpv.desktop" ]; + "audio/wav" = [ "mpv.desktop" ]; + "audio/webm" = [ "mpv.desktop" ]; + "audio/3gpp" = [ "mpv.desktop" ]; + "audio/3gpp2" = [ "mpv.desktop" ]; + "video/mp4" = [ "mpv.desktop" ]; + "video/x-msvideo" = [ "mpv.desktop" ]; + "video/mpeg" = [ "mpv.desktop" ]; + "video/ogg" = [ "mpv.desktop" ]; + "video/mp2t" = [ "mpv.desktop" ]; + "video/webm" = [ "mpv.desktop" ]; + "video/3gpp" = [ "mpv.desktop" ]; + "video/3gpp2" = [ "mpv.desktop" ]; + "image/png" = [ "imv.desktop" ]; + "image/jpeg" = [ "imv.desktop" ]; + "image/gif" = [ "imv.desktop" ]; + "image/avif" = [ "imv.desktop" ]; + "image/bmp" = [ "imv.desktop" ]; + "image/vnd.microsoft.icon" = [ "imv.desktop" ]; + "image/svg+xml" = [ "imv.desktop" ]; + "image/tiff" = [ "imv.desktop" ]; + "image/webp" = [ "imv.desktop" ]; + "text/plain" = [ "nvim.desktop" ]; + }; + }; + }; +}