mirror of
https://git.adityakumar.xyz/nix-conf.git
synced 2024-11-13 00:49:44 +00:00
20 lines
391 B
Nix
20 lines
391 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}: {
|
|
options = {
|
|
audio.enable = lib.mkEnableOption "enable sound";
|
|
};
|
|
config = lib.mkIf config.audio.enable {
|
|
#sound.enable = true;
|
|
hardware.pulseaudio.enable = false;
|
|
security.rtkit.enable = true;
|
|
services.pipewire = {
|
|
enable = true;
|
|
alsa.enable = true;
|
|
alsa.support32Bit = true;
|
|
pulse.enable = true;
|
|
};
|
|
};
|
|
}
|