From 2cfb1362702b4b59f7e3848838ac14a6bf7989e5 Mon Sep 17 00:00:00 2001 From: js0ny Date: Fri, 5 Dec 2025 17:04:22 +0000 Subject: [PATCH] mime: *.nix --- nixcfgs/users/js0ny/programs/mime.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/nixcfgs/users/js0ny/programs/mime.nix b/nixcfgs/users/js0ny/programs/mime.nix index 72eb36a..865642b 100644 --- a/nixcfgs/users/js0ny/programs/mime.nix +++ b/nixcfgs/users/js0ny/programs/mime.nix @@ -12,6 +12,8 @@ "text/x-python" "application/yaml" # .yaml, .yml "text/x-patch" # .patch .diff + "text/x-devicetree-source" # .dts + "text/x-nix" # .nix (custom defined below) ] ++ [ "text/csv" @@ -92,4 +94,17 @@ in { // mkAssoc archiveManager archive; }; home.sessionVariables.BROWSER = "firefox"; + + xdg.dataFile = { + "mime/packages/nix.xml".text = '' + + + + Nix Source Code + + + + + ''; + }; }