mirror of
https://git.adityakumar.xyz/nix-conf.git
synced 2024-11-14 09:09:45 +00:00
21 lines
390 B
Nix
21 lines
390 B
Nix
|
{
|
||
|
config,
|
||
|
lib,
|
||
|
...
|
||
|
}: {
|
||
|
options = {
|
||
|
sound.enable = lib.mkEnableOption "enable sound";
|
||
|
};
|
||
|
config = lib.mkIf config.sound.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;
|
||
|
};
|
||
|
};
|
||
|
}
|