Files
nix-config/modules/nixos/services/appimage/default.nix
mjallen18 d981fb20c2 fmt ++
2025-12-23 21:04:21 -06:00

23 lines
480 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";
};
};
}