28 lines
697 B
Nix
28 lines
697 B
Nix
{ config, lib, pkgs, ... }:
|
|
# let
|
|
# nixGaming = import (builtins.fetchTarball
|
|
# "https://github.com/fufexan/nix-gaming/archive/master.tar.gz");
|
|
# in
|
|
{
|
|
imports = [
|
|
# nixGaming.nixosModules.pipewireLowLatency
|
|
];
|
|
options.my.services.sound.enable = lib.mkEnableOption "enable";
|
|
config = lib.mkIf config.my.services.sound.enable {
|
|
hardware.pulseaudio.enable = false;
|
|
security.rtkit.enable = true;
|
|
sound.enable = false;
|
|
services.pipewire = {
|
|
enable = true;
|
|
alsa.enable = true;
|
|
alsa.support32Bit = true;
|
|
pulse.enable = true;
|
|
# lowLatency = {
|
|
# enable = true;
|
|
# quantum = 64;
|
|
# rate = 48000;
|
|
# };
|
|
};
|
|
};
|
|
}
|