feat(dregil): Enable AppImage binfmt support
This commit is contained in:
parent
7879575e1b
commit
59e86c9580
2 changed files with 13 additions and 0 deletions
|
|
@ -16,6 +16,7 @@ in {
|
||||||
# Include the results of the hardware scan.
|
# Include the results of the hardware scan.
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
# <nixos-hardware/lenovo/legion/15ich>
|
# <nixos-hardware/lenovo/legion/15ich>
|
||||||
|
../../modules/appimage.nix
|
||||||
../../modules/wm/x.nix
|
../../modules/wm/x.nix
|
||||||
../../modules/wm/xmonad/default.nix
|
../../modules/wm/xmonad/default.nix
|
||||||
];
|
];
|
||||||
|
|
|
||||||
12
modules/appimage.nix
Normal file
12
modules/appimage.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
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";
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue