From c52baa5977726370f652d7a5199d227733e1ffeb Mon Sep 17 00:00:00 2001 From: Joseph Hanson Date: Sat, 30 Dec 2023 11:17:05 -0600 Subject: [PATCH] Add app image type and run it with appimage-run --- configuration.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/configuration.nix b/configuration.nix index 4431f15..af4efbd 100644 --- a/configuration.nix +++ b/configuration.nix @@ -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";