From 369c43c909b8e7ac6e8e0a7a58c29cfa662956c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Wed, 29 Nov 2023 15:15:56 +0100 Subject: desktop: allow easier appimage execution --- nixos/modules/desktop.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'nixos') diff --git a/nixos/modules/desktop.nix b/nixos/modules/desktop.nix index c4a2b5b..38758c7 100644 --- a/nixos/modules/desktop.nix +++ b/nixos/modules/desktop.nix @@ -314,5 +314,15 @@ in { services.gpm.enable = true; services.locate.enable = true; + + # Support running app images + 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''; + }; }; } -- cgit v1.2.3