flocon/modules/services/pipewire.nix
Anthony Rodriguez b944193615
treewide: pedantic inherits
This fixes inherits and library functions usage, to inherit them
explicitely at top level of the file.
2025-02-23 00:01:57 +01:00

28 lines
548 B
Nix

{
lib,
inputs,
config,
...
}: let
inherit (lib.modules) mkIf;
in {
imports = [
inputs.nix-gaming.nixosModules.pipewireLowLatency
];
config = mkIf config.local.profiles.desktop.enable {
services = {
pulseaudio.enable = false;
pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
jack.enable = true;
lowLatency.enable = true;
};
};
# rtkit is optional but recommended
security.rtkit.enable = true;
};
}