Libimobiledevice
Appearance
In order to be able to automatically mount your iOS device (such as an iPhone) when connecting it, you need to install libimobiledevice and to activate the usbmuxd service.
Add the following to your configuration.nix:
services.usbmuxd.enable = true;
environment.systemPackages = with pkgs; [
libimobiledevice
ifuse # optional, to mount using 'ifuse'
];
You can then mount your device using ifuse:
$ mkdir /tmp/iphone
$ ifuse /tmp/iphoneIf you get an error about ERROR: No device found!, check the status of usbmuxd:
$ sudo systemctl status usbmuxd.serviceIf you see an error
ERROR: Could not connect to lockdownd on device [...], lockdown error -8you may need to restart the usbmuxd service as reported [here https://github.com/NixOS/nixpkgs/issues/152592]:
$ sudo systemctl restart usbmuxd.service(it may take a bit of time)