27 lines
438 B
Nix
27 lines
438 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
let
|
|
cfg = config.my.hardware.bluetooth;
|
|
in
|
|
{
|
|
options.my.hardware.sound = with lib; {
|
|
enable = mkEnableOption "Sound configuration";
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
services.pulseaudio = {
|
|
enable = false;
|
|
support32Bit = true;
|
|
};
|
|
|
|
users.extraUsers.finn.extraGroups = [ "audio" ];
|
|
environment.systemPackages = with pkgs; [
|
|
headsetcontrol
|
|
];
|
|
};
|
|
}
|