system/modules/nixos/configs/sound.nix

17 lines
313 B
Nix

{ config, pkgs, lib, ... }:
{
options.local.sound.enable = lib.mkEnableOption "sound";
config = lib.mkIf config.local.sound.enable {
sound = {
enable = true;
mediaKeys.enable = true;
};
hardware.pulseaudio = {
enable = true;
package = pkgs.pulseaudioFull;
};
};
}