17 lines
372 B
Nix
17 lines
372 B
Nix
{ lib, config, pkgs, ... }:
|
|
let
|
|
isEnabled =
|
|
config.azos.hardware-audio.enable;
|
|
in {
|
|
options.azos.hardware-audio.enable = lib.mkOption {
|
|
default = true;
|
|
example = true;
|
|
type = lib.types.bool;
|
|
};
|
|
|
|
config = lib.mkIf isEnabled {
|
|
hardware.pulseaudio.enable = true;
|
|
environment.systemPackages = with pkgs; [pavucontrol];
|
|
};
|
|
}
|