forked from CCCHH/nix-infra
26 lines
395 B
Nix
26 lines
395 B
Nix
|
# Sources for this configuration:
|
||
|
# - https://nixos.wiki/wiki/PipeWire
|
||
|
|
||
|
{ config, pkgs, lib, ... }:
|
||
|
|
||
|
with lib;
|
||
|
|
||
|
let
|
||
|
|
||
|
cfg = config.ccchh.services.audio;
|
||
|
|
||
|
in
|
||
|
|
||
|
{
|
||
|
config = mkIf cfg.enable {
|
||
|
security.rtkit.enable = true;
|
||
|
services.pipewire = {
|
||
|
enable = true;
|
||
|
systemWide = true;
|
||
|
alsa.enable = true;
|
||
|
alsa.support32Bit = true;
|
||
|
pulse.enable = true;
|
||
|
};
|
||
|
};
|
||
|
}
|