9083c619a6
Note: not the actual initial commit. I swear I will stop repeatedly force pushing to this single commit eventually ok.
23 lines
452 B
Nix
23 lines
452 B
Nix
{ config, lib, ... }:
|
|
|
|
let
|
|
cfg = config.my.desktop.audio;
|
|
in {
|
|
options.my.desktop.audio = {
|
|
enable = lib.mkEnableOption null;
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
hardware.pulseaudio.enable = false;
|
|
security.rtkit.enable = true;
|
|
services.pipewire = {
|
|
enable = true;
|
|
alsa.enable = true;
|
|
alsa.support32Bit = true;
|
|
pulse.enable = true;
|
|
wireplumber.enable = true;
|
|
jack.enable = true;
|
|
};
|
|
};
|
|
}
|