Add app image type and run it with appimage-run

This commit is contained in:
Joseph Hanson 2023-12-30 11:17:05 -06:00
parent a33ba32a5d
commit c52baa5977

View file

@ -118,6 +118,7 @@
lazygit
fira-code-nerdfont
tailscale
appimage-run
];
services.tailscale.enable = true;
@ -148,6 +149,16 @@
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "23.11"; # Did you read the comment?
# Register app image as an executable and run it with appimage-run
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'';
};
systemd.user.services.ssh_agent = {
enable = true;
description = "OpenSSH key agent";