diff options
author | Karel Kočí <cynerd@email.cz> | 2023-11-29 15:15:56 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2023-11-29 15:15:56 +0100 |
commit | 369c43c909b8e7ac6e8e0a7a58c29cfa662956c2 (patch) | |
tree | 7c07155f945e661c3c0cbec1e74b2bc4072bcc0f /nixos/modules | |
parent | 63de9d1ba73784638d9241ec8f7288f96a201efb (diff) | |
download | nixos-personal-369c43c909b8e7ac6e8e0a7a58c29cfa662956c2.tar.gz nixos-personal-369c43c909b8e7ac6e8e0a7a58c29cfa662956c2.tar.bz2 nixos-personal-369c43c909b8e7ac6e8e0a7a58c29cfa662956c2.zip |
desktop: allow easier appimage execution
Diffstat (limited to 'nixos/modules')
-rw-r--r-- | nixos/modules/desktop.nix | 10 |
1 files changed, 10 insertions, 0 deletions
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''; + }; }; } |