mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 19:51:34 +01:00
20 lines
426 B
Nix
20 lines
426 B
Nix
{ config, lib, ... }:
|
|
{
|
|
options.custom.sound.enable = lib.mkEnableOption "";
|
|
|
|
config = lib.mkIf config.custom.sound.enable {
|
|
security.rtkit.enable = true;
|
|
services = {
|
|
pulseaudio.enable = false;
|
|
pipewire = {
|
|
enable = true;
|
|
wireplumber.enable = true;
|
|
pulse.enable = true;
|
|
alsa = {
|
|
enable = true;
|
|
support32Bit = true;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|