15 lines
300 B
Nix
Executable File
15 lines
300 B
Nix
Executable File
{pkgs, config, lib, ...}:
|
|
with lib;
|
|
with builtins;
|
|
let
|
|
cfg = config.sys.audio;
|
|
in {
|
|
config = mkIf (cfg.server == "pulse") {
|
|
sound.enable = true;
|
|
|
|
hardware.pulseaudio.enable = true;
|
|
hardware.pulseaudio.support32Bit = true;
|
|
hardware.pulseaudio.package = pkgs.pulseaudioFull;
|
|
};
|
|
}
|