mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-01-08 18:16:33 +01:00
19 lines
518 B
Nix
19 lines
518 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
let cfg = config.programs.appimage;
|
|
in {
|
|
options.programs.appimage = {
|
|
enable = lib.mkEnableOption "Enable AppImage Support";
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
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'';
|
|
};
|
|
};
|
|
}
|