IOS

From NixOS Wiki
Revision as of 06:13, 26 June 2022 by Mic92 (talk | contribs) (ios: fix link)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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/iphone

If you get an error about ERROR: No device found!, check the status of usbmuxd:

$ sudo systemctl status usbmuxd.service

If you see an error

ERROR: Could not connect to lockdownd on device [...], lockdown error -8

you may need to restart the usbmuxd service as reported here:

$ sudo systemctl restart usbmuxd.service

(it may take a bit of time)