From a0b9cde0652fb9c2d832aae2326e887e325ecc3f Mon Sep 17 00:00:00 2001 From: Myned Date: Sat, 14 Dec 2024 14:25:11 -0600 Subject: [PATCH] usbmuxd: initial module Signed-off-by: Myned --- options/custom/services/default.nix | 1 + options/custom/services/usbmuxd.nix | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 options/custom/services/usbmuxd.nix diff --git a/options/custom/services/default.nix b/options/custom/services/default.nix index 3c9da10..af28e23 100644 --- a/options/custom/services/default.nix +++ b/options/custom/services/default.nix @@ -46,6 +46,7 @@ with lib; { #// swayidle.enable = true; swaync.enable = true; swayosd.enable = true; + usbmuxd.enable = true; #// xembed-sni-proxy.enable = true; #// zerotierone.enable = true; }) diff --git a/options/custom/services/usbmuxd.nix b/options/custom/services/usbmuxd.nix new file mode 100644 index 0000000..cad49ad --- /dev/null +++ b/options/custom/services/usbmuxd.nix @@ -0,0 +1,16 @@ +{ + config, + lib, + pkgs, + ... +}: +with lib; let + cfg = config.custom.services.usbmuxd; +in { + options.custom.services.usbmuxd.enable = mkOption {default = false;}; + + config = mkIf cfg.enable { + services.usbmuxd.enable = true; + environment.systemPackages = with pkgs; [libimobiledevice]; + }; +}