23 lines
633 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
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
2023-10-09 15:54:20 -07:00
];
2023-10-07 02:16:26 -07:00
# rtkit is optional but recommended
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
};
}