From ab6018b08cd72f6cf3979d0946fcac522cf3cbd6 Mon Sep 17 00:00:00 2001 From: Bailey Stevens Date: Mon, 22 Jan 2024 21:48:03 -0500 Subject: [PATCH] Runs appimage as normal executables. --- systems/x86_64-linux/gallifrey/default.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/systems/x86_64-linux/gallifrey/default.nix b/systems/x86_64-linux/gallifrey/default.nix index 226acf4..5020032 100644 --- a/systems/x86_64-linux/gallifrey/default.nix +++ b/systems/x86_64-linux/gallifrey/default.nix @@ -136,9 +136,17 @@ }; }; + 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''; + }; + # Before changing this value read the documentation for this option # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). system.stateVersion = "23.11"; # Did you read the comment? - }