mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-11-09 18:47:02 +00:00
19 lines
403 B
Nix
19 lines
403 B
Nix
{ config, lib, ... }:
|
|
let
|
|
cfg = config.sconfig.pipewire;
|
|
in
|
|
{
|
|
options.sconfig.pipewire = lib.mkEnableOption "Enable Pipewire";
|
|
|
|
config = lib.mkIf cfg {
|
|
sound.enable = true;
|
|
hardware.pulseaudio.enable = false;
|
|
security.rtkit.enable = true;
|
|
services.pipewire = {
|
|
enable = true;
|
|
pulse.enable = true;
|
|
alsa.enable = true;
|
|
alsa.support32Bit = true;
|
|
};
|
|
};
|
|
}
|