2023-11-26 20:26:49 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
cfg = config.jade.desktop.ios-compat;
|
|
|
|
in
|
|
|
|
with lib; {
|
|
|
|
options.jade.desktop.ios-compat = {
|
|
|
|
enable = mkEnableOption "Enable the ios compatability programs";
|
2023-02-13 11:54:21 +00:00
|
|
|
};
|
2023-11-26 20:26:49 +00:00
|
|
|
config = mkIf cfg.enable {
|
|
|
|
services = {
|
|
|
|
usbmuxd.enable = true;
|
|
|
|
gvfs.enable = true;
|
|
|
|
};
|
|
|
|
home-manager.users.jade = {pkgs, ...}: {
|
|
|
|
home.packages = with pkgs; [
|
|
|
|
libimobiledevice
|
|
|
|
libimobiledevice-glue
|
|
|
|
ifuse
|
|
|
|
usbmuxd
|
|
|
|
libusbmuxd
|
|
|
|
gvfs
|
|
|
|
];
|
|
|
|
};
|
2023-02-13 11:54:21 +00:00
|
|
|
};
|
2023-11-26 20:26:49 +00:00
|
|
|
}
|