1
0
Fork 0
mirror of https://git.sr.ht/~neverness/ultima synced 2025-01-01 17:43:52 +00:00
ultima/modules/nixos/hardware/sound/default.nix

25 lines
577 B
Nix
Raw Normal View History

2024-11-21 09:24:15 +00:00
{ pkgs, lib, config, inputs, True, ... }:
with lib;
let cfg = config.module.hardware.sound;
in {
options = { module.hardware.sound = { enable = mkEnableOption ""; }; };
2024-11-24 08:17:07 +00:00
imports = [ inputs.gaming.nixosModules.pipewireLowLatency ];
2024-11-21 09:24:15 +00:00
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;
};
};
};
}