Files
nixos/modules/hardware/sound/default.nix
T
2025-02-07 22:13:20 +01:00

24 lines
434 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 {
hardware.pulseaudio.enable = false;
hardware.pulseaudio.support32Bit = true;
users.extraUsers.finn.extraGroups = [ "audio" ];
environment.systemPackages = with pkgs; [
headsetcontrol
];
};
}