diff --git a/hosts/dregil/configuration.nix b/hosts/dregil/configuration.nix index d863423..d38e601 100644 --- a/hosts/dregil/configuration.nix +++ b/hosts/dregil/configuration.nix @@ -16,6 +16,7 @@ in { # Include the results of the hardware scan. ./hardware-configuration.nix # + ../../modules/appimage.nix ../../modules/wm/x.nix ../../modules/wm/xmonad/default.nix ]; diff --git a/modules/appimage.nix b/modules/appimage.nix new file mode 100644 index 0000000..782a467 --- /dev/null +++ b/modules/appimage.nix @@ -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"; + }; +}