Files
nix-config/modules/nixos/services/appimage/default.nix
mjallen18 31202f8b0e upd
2025-12-11 17:41:05 -06:00

18 lines
473 B
Nix

{ lib, pkgs, system, ... }:
let
isArm = "aarch64-linux" == system;
in
{
boot = {
# Enable AppImage
binfmt.registrations.appimage = lib.mkIf (!isArm) {
wrapInterpreterInShell = lib.mkDefault false;
interpreter = "${lib.getExe 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";
};
};
}