nixos-configs/modules/hardware/audio.nix
2023-03-21 23:02:30 +01:00

18 lines
432 B
Nix

{ options, config, lib, pkgs, ... }:
with lib;
with lib.my;
let cfg = config.modules.hardware.audio;
in {
options.modules.hardware.audio = { enable = mkBoolOpt false; };
config = mkIf cfg.enable {
sound.enable = true;
hardware.pulseaudio.enable = true;
hardware.pulseaudio.support32Bit = true;
home-manager.users.${config.user.name} = {
home.packages = with pkgs.unstable; [ pulsemixer ];
};
};
}