25 lines
452 B
Nix
25 lines
452 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;
|
||
|
};
|
||
|
};
|
||
|
}
|
||
|
|