This commit is contained in:
jopejoe1 2024-02-17 23:33:17 +01:00
parent 4783db68ff
commit 7c10990c19
7 changed files with 20 additions and 42 deletions

View file

@ -0,0 +1,19 @@
{ config, lib, ... }:
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'';
};
};
}

View file

@ -2,6 +2,5 @@
{
imports = [
./sshfs
];
}

View file

@ -1,7 +0,0 @@
{ config, lib, pkgs, ... }:
{
config = lib.mkIf (lib.any (fs: fs == "sshfs" || fs == "fuse.sshfs") config.boot.supportedFilesystems) {
system.fsPackages = [ pkgs.sshfs ];
};
}