Add app image type and run it with appimage-run
This commit is contained in:
parent
a33ba32a5d
commit
c52baa5977
1 changed files with 11 additions and 0 deletions
|
@ -118,6 +118,7 @@
|
||||||
lazygit
|
lazygit
|
||||||
fira-code-nerdfont
|
fira-code-nerdfont
|
||||||
tailscale
|
tailscale
|
||||||
|
appimage-run
|
||||||
];
|
];
|
||||||
services.tailscale.enable = true;
|
services.tailscale.enable = true;
|
||||||
|
|
||||||
|
@ -148,6 +149,16 @@
|
||||||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||||||
system.stateVersion = "23.11"; # Did you read the comment?
|
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 = {
|
systemd.user.services.ssh_agent = {
|
||||||
enable = true;
|
enable = true;
|
||||||
description = "OpenSSH key agent";
|
description = "OpenSSH key agent";
|
||||||
|
|
Reference in a new issue