27 lines
903 B
Nix
Raw Normal View History

2024-04-06 11:35:21 -07:00
{ config, lib, pkgs, user, ... }:
2023-09-12 21:34:40 -07:00
let cfg = config.modules.services.peripherals;
in {
options.modules.services.peripherals.enable = lib.mkEnableOption "peripherals";
config = lib.mkIf cfg.enable {
2023-10-07 02:16:26 -07:00
2024-08-02 23:40:44 -07:00
services.usbmuxd.enable = true; # for iOS mounting as storage
2023-10-09 15:54:20 -07:00
environment.systemPackages = with pkgs; [
pulseaudio # Sound server for Linux and other Unix-like operating systems.
2024-07-13 23:35:14 -07:00
pavucontrol # Simple GTK based mixer for the PulseAudio sound server
2024-08-02 23:40:44 -07:00
libimobiledevice # Library to support iPhone, iPod Touch and iPad devices on Linux
ifuse # fuse filesystem implementation to access the contents of iOS devices
usbtop
pySVS # control SVS subwoofers from the command-line
2023-10-09 15:54:20 -07:00
];
2023-10-07 02:16:26 -07:00
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
2023-09-12 21:34:40 -07:00
};
}