ios :D
This commit is contained in:
parent
fa5f470d97
commit
1e31cbac77
4 changed files with 140 additions and 0 deletions
23
modules/hardware/ios.nix
Normal file
23
modules/hardware/ios.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue