mime(cia): Add nintendo 3ds cia mime

This commit is contained in:
js0ny 2026-03-06 04:49:15 +00:00
parent 130a16e67f
commit 7e0e7fcae8
2 changed files with 20 additions and 0 deletions

View file

@ -115,6 +115,7 @@ in {
kdePackages.elisa kdePackages.elisa
showmethekey showmethekey
readest readest
openclaw
# Use Wayland for Jetbrains # Use Wayland for Jetbrains
# (jetbrains.idea-ultimate.override { # (jetbrains.idea-ultimate.override {
@ -171,4 +172,7 @@ in {
}; };
}; };
programs.waveterm.enable = true; programs.waveterm.enable = true;
nixpkgs.config.permittedInsecurePackages = [
"openclaw-2026.2.26"
];
} }

View file

@ -114,6 +114,7 @@ in {
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info"> <mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="text/x-nix"> <mime-type type="text/x-nix">
<comment>Nix Source Code</comment> <comment>Nix Source Code</comment>
<comment xml:lang="zh_CN">Nix </comment>
<glob pattern="*.nix"/> <glob pattern="*.nix"/>
<sub-class-of type="text/plain"/> <sub-class-of type="text/plain"/>
</mime-type> </mime-type>
@ -125,6 +126,7 @@ in {
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info"> <mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="text/x-pdx-descriptor"> <mime-type type="text/x-pdx-descriptor">
<comment>Paradox Mod Descriptor</comment> <comment>Paradox Mod Descriptor</comment>
<comment xml:lang="zh_CN">Paradox Mod </comment>
<sub-class-of type="text/plain"/> <sub-class-of type="text/plain"/>
<glob pattern="*.mod" weight="80"/> <magic priority="80"> <glob pattern="*.mod" weight="80"/> <magic priority="80">
<match value="name=" type="string" offset="0:200"/> <match value="name=" type="string" offset="0:200"/>
@ -135,5 +137,19 @@ in {
</mime-type> </mime-type>
</mime-info> </mime-info>
''; '';
# Nintendo CTR Importable Archive (CIA) File
"mime/packages/ctr-cia.xml".text = ''
<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="application/x-ctr-importable-archive">
<comment>Nintendo 3DS CTR Importable Archive</comment>
<comment xml:lang="zh_CN">3DS CTR (CIA)</comment>
<glob pattern="*.cia"/>
<magic priority="50">
<match type="string" offset="0" value="\x20\x20\x00\x00\x00\x00\x00\x00"/>
</magic>
</mime-type>
</mime-info>
'';
}; };
} }