1
0
Fork 0
mirror of https://git.sr.ht/~neverness/ultima synced 2025-01-01 18:23:51 +00:00
ultima/modules/nixos/hardware/sound/default.nix
2024-12-09 10:15:55 +09:00

25 lines
576 B
Nix

{ x, pkgs, lib, config, inputs, True, ... }:
with lib;
with x;
let cfg = config.module.hardware.sound;
in {
options = { module.hardware.sound = { enable = mkBool; }; };
imports = [ inputs.gaming.nixosModules.pipewireLowLatency ];
config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [ pulsemixer ];
security.rtkit = True;
services.pipewire = True // {
pulse = True;
wireplumber = True;
alsa = True // { support32Bit = true; };
lowLatency = True // {
quantum = 64;
rate = 48000;
};
};
};
}