feat(dregil): Enable AppImage binfmt support

This commit is contained in:
Alexander Kobjolke 2024-02-12 22:21:31 +01:00
parent 7879575e1b
commit 59e86c9580
2 changed files with 13 additions and 0 deletions

12
modules/appimage.nix Normal file
View file

@ -0,0 +1,12 @@
{ config, lib, pkgs, ... }:
{
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";
};
}