mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-06-07 21:39:23 +02:00
clean up
This commit is contained in:
parent
4783db68ff
commit
7c10990c19
7 changed files with 20 additions and 42 deletions
19
upstream/modules/appimage/default.nix
Normal file
19
upstream/modules/appimage/default.nix
Normal 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'';
|
||||
};
|
||||
};
|
||||
}
|
|
@ -2,6 +2,5 @@
|
|||
|
||||
{
|
||||
imports = [
|
||||
./sshfs
|
||||
];
|
||||
}
|
||||
|
|
|
@ -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 ];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue