mime: *.nix

This commit is contained in:
js0ny 2025-12-05 17:04:22 +00:00
parent 33e215b2bf
commit 2cfb136270

View file

@ -12,6 +12,8 @@
"text/x-python" "text/x-python"
"application/yaml" # .yaml, .yml "application/yaml" # .yaml, .yml
"text/x-patch" # .patch .diff "text/x-patch" # .patch .diff
"text/x-devicetree-source" # .dts
"text/x-nix" # .nix (custom defined below)
] ]
++ [ ++ [
"text/csv" "text/csv"
@ -92,4 +94,17 @@ in {
// mkAssoc archiveManager archive; // mkAssoc archiveManager archive;
}; };
home.sessionVariables.BROWSER = "firefox"; home.sessionVariables.BROWSER = "firefox";
xdg.dataFile = {
"mime/packages/nix.xml".text = ''
<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="text/x-nix">
<comment>Nix Source Code</comment>
<glob pattern="*.nix"/>
<sub-class-of type="text/plain"/>
</mime-type>
</mime-info>
'';
};
} }