mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 07:08:12 +09:00
23 lines
432 B
Nix
23 lines
432 B
Nix
{ lib, config, ... }:
|
|
let
|
|
cfg = config.my.system.audio;
|
|
in
|
|
{
|
|
options.my.system.audio = {
|
|
enable = lib.mkEnableOption "Audio support (PipeWire)";
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
security.rtkit.enable = true;
|
|
|
|
services.pipewire = {
|
|
enable = true;
|
|
alsa.enable = true;
|
|
alsa.support32Bit = true;
|
|
pulse.enable = true;
|
|
jack.enable = true;
|
|
wireplumber.enable = true;
|
|
};
|
|
};
|
|
}
|