35 lines
644 B
Nix
35 lines
644 B
Nix
{
|
|
options,
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
with lib;
|
|
with lib.wyrdgard; let
|
|
cfg = config.wyrdgard.system.hardware.audio;
|
|
in {
|
|
options.wyrdgard.system.hardware.audio = with types; {
|
|
enable = mkBoolOpt false "Whether or not to enable audio";
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
environment.systemPackages = with pkgs; [
|
|
noisetorch
|
|
];
|
|
|
|
programs.noisetorch.enable = true;
|
|
|
|
sound.enable = true;
|
|
hardware.pulseaudio.enable = false;
|
|
security.rtkit.enable = true;
|
|
|
|
services.pipewire = {
|
|
enable = true;
|
|
alsa.enable = true;
|
|
alsa.support32Bit = true;
|
|
pulse.enable = true;
|
|
};
|
|
};
|
|
}
|