This commit is contained in:
Reid 2026-05-29 00:08:13 -07:00
parent fa5f470d97
commit 1e31cbac77
Signed by: reidlab
GPG key ID: DAF5EAF6665839FD
4 changed files with 140 additions and 0 deletions

23
modules/hardware/ios.nix Normal file
View file

@ -0,0 +1,23 @@
{ pkgs, config, lib, ... }:
with lib;
let
cfg = config.modules.hardware.ios;
in {
options.modules.hardware.ios = {
enable = mkEnableOption "Enable tethering with iOS devices";
sideload = mkEnableOption "Additionally, enable sideloading through Althea";
};
config = mkIf cfg.enable {
services.usbmuxd.enable = true;
services.usbmuxd.package = pkgs.usbmuxd2;
environment.systemPackages = with pkgs; [
libimobiledevice
ifuse
];
hm.home.packages = optional cfg.sideload pkgs.my.althea;
};
}