28 lines
516 B
Nix
28 lines
516 B
Nix
|
{ lib, config, ... }:
|
||
|
|
||
|
let
|
||
|
cfg = config.snowhawk.audio;
|
||
|
in
|
||
|
{
|
||
|
options.snowhawk.audio = {
|
||
|
enable = lib.mkEnableOption "audio";
|
||
|
};
|
||
|
|
||
|
config = lib.mkIf cfg.enable {
|
||
|
# Enable sound with pipewire.
|
||
|
sound.enable = true;
|
||
|
hardware.pulseaudio.enable = false;
|
||
|
security.rtkit.enable = true;
|
||
|
services.pipewire = {
|
||
|
enable = true;
|
||
|
alsa.enable = true;
|
||
|
alsa.support32Bit = true;
|
||
|
pulse.enable = true;
|
||
|
# jack.enable = true;
|
||
|
|
||
|
media-session.enable = true;
|
||
|
};
|
||
|
};
|
||
|
}
|
||
|
|