mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-27 10:36:12 +01:00
17 lines
349 B
Nix
17 lines
349 B
Nix
|
{ config, pkgs, ... }:
|
||
|
let
|
||
|
mkIf = pkgs.lib.mkIf;
|
||
|
bluetooth-enable = config.hardware.bluetooth.enable;
|
||
|
in {
|
||
|
sound.enable = true;
|
||
|
hardware = {
|
||
|
pulseaudio = {
|
||
|
enable = true;
|
||
|
package = mkIf bluetooth-enable pkgs.pulseaudioFull;
|
||
|
};
|
||
|
pulseaudio.support32Bit = true;
|
||
|
};
|
||
|
|
||
|
systemd.user.services.pulseaudio.enable = true;
|
||
|
}
|