handle app images with appimage-run

This commit is contained in:
BuyMyMojo 2025-04-04 21:17:36 +11:00
parent 8cfafb0b9d
commit b42afdda7e
Signed by untrusted user who does not match committer: aria
GPG key ID: 19AB7AA462B8AB3B
2 changed files with 14 additions and 5 deletions

View file

@ -68,4 +68,13 @@
'';
};
boot.binfmt.registrations.appimage = {
wrapInterpreterInShell = false;
interpreter = "${pkgs.appimage-run}/bin/appimage-run";
recognitionType = "magic";
offset = 0;
mask = ''\xff\xff\xff\xff\x00\x00\x00\x00\xff\xff\xff'';
magicOrExtension = ''\x7fELF....AI\x02'';
};
}