mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-27 02:26:14 +01:00
18 lines
420 B
Nix
18 lines
420 B
Nix
{ nixpkgs, nixpkgs-unstable, nixpkgs-master, custom, hostname, rlib }:
|
|
{ config, ... }:
|
|
let
|
|
mkIf = nixpkgs.lib.mkIf;
|
|
bluetooth-enable = config.hardware.bluetooth.enable;
|
|
in {
|
|
sound.enable = true;
|
|
hardware = {
|
|
pulseaudio = {
|
|
enable = true;
|
|
package = mkIf bluetooth-enable nixpkgs.pulseaudioFull;
|
|
};
|
|
pulseaudio.support32Bit = true;
|
|
};
|
|
|
|
systemd.user.services.pulseaudio.enable = true;
|
|
}
|