From 523c1b4b890e5d2b74651558a3a47da41f42d9e8 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Sun, 2 Jun 2024 07:04:51 +0530 Subject: home-manager/mimeapps: init --- home/common/modules/mimeapps.nix | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 home/common/modules/mimeapps.nix (limited to 'home/common/modules') diff --git a/home/common/modules/mimeapps.nix b/home/common/modules/mimeapps.nix new file mode 100644 index 0000000..6f4b770 --- /dev/null +++ b/home/common/modules/mimeapps.nix @@ -0,0 +1,29 @@ +{ ... }: { + xdg.mimeApps = { + enable = true; + defaultApplications = { + # text + "application/javascript" = "nvim.desktop"; + "application/json" = "nvim.desktop"; + "application/sql" = "nvim.desktop"; + "application/xml" = "nvim.desktop"; + "text/css" = "nvim.desktop"; + "text/csv" = "nvim.desktop"; + "text/html" = "nvim.desktop"; + "text/markdown" = "nvim.desktop"; + "text/plain" = "nvim.desktop"; + "text/x-c" = "nvim.desktop"; + "text/x-diff" = "nvim.desktop"; + "text/x-lua" = "nvim.desktop"; + "text/x-meson" = "nvim.desktop"; + "text/xml" = "nvim.desktop"; + "text/x-patch" = "nvim.desktop"; + "text/x-script.python" = "nvim.desktop"; + "text/x-shellscript" = "nvim.desktop"; + "text/x-python" = "nvim.desktop"; + + # misc + "inode/directory" = "nnn.desktop"; + }; + }; +} -- cgit v1.2.3