feat(ios): init module
This commit is contained in:
18
modules/nixos/ios.nix
Normal file
18
modules/nixos/ios.nix
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
let cfg = config.sydnix.ios;
|
||||||
|
in {
|
||||||
|
options.sydnix.ios = {
|
||||||
|
enable = lib.mkEnableOption "interaction with iOS devices over USB";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
# Required for libimobiledevice, seemingly.
|
||||||
|
services.usbmuxd.enable = true;
|
||||||
|
|
||||||
|
environment.systemPackages = [
|
||||||
|
pkgs.ifuse
|
||||||
|
pkgs.libimobiledevice
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user