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; [
|
2024-04-21 10:37:47 -07:00
|
|
|
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
|
2024-09-23 13:53:21 -07:00
|
|
|
usbtop
|
2024-10-17 23:35:19 -07:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|