nixos-config/desktop/compat.nix

30 lines
602 B
Nix
Raw Normal View History

2024-03-10 00:44:38 -08:00
{
pkgs,
...
} @ args: {
# AppImage support
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'';
};
# Flatpak
services.flatpak.enable = true;
# Legacy
programs.nix-ld.enable = true;
programs.nix-ld.libraries = with pkgs; [
# Add any missing dynamic libraries for unpackaged programs
# here, NOT in environment.systemPackages
];
}