system/modules/nixos/configs/sound.nix

18 lines
313 B
Nix
Raw Normal View History

2024-04-16 02:51:46 +03:00
{ 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;
};
};
}