mirror of
https://github.com/oddlama/nix-config.git
synced 2025-10-11 07:10:39 +02:00
refactor: split "real" modules and "config" modules
This commit is contained in:
parent
045f15239a
commit
cceae6c63c
60 changed files with 126 additions and 113 deletions
37
config/optional/sound.nix
Normal file
37
config/optional/sound.nix
Normal file
|
@ -0,0 +1,37 @@
|
|||
{
|
||||
lib,
|
||||
minimal,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
lib.optionalAttrs (!minimal) {
|
||||
# Helpful utilities:
|
||||
# Show pipewire devices and application overview or specifics
|
||||
# > wpctl status; wpctl inspect <id>
|
||||
# View real time node and device statistics
|
||||
# > pw-top
|
||||
# Show actual used playback stream settings
|
||||
# > cat /proc/asound/card*/pcm*p/sub*/hw_params
|
||||
# Compare resamplers on: https://src.infinitewave.ca/
|
||||
|
||||
sound.enable = false; # ALSA
|
||||
hardware.pulseaudio.enable = lib.mkForce false;
|
||||
security.rtkit.enable = true;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
jack.enable = true;
|
||||
pulse.enable = true;
|
||||
wireplumber.enable = true;
|
||||
extraConfig.pipewire."99-allowed-rates"."context.properties"."default.clock.allowed-rates" = [
|
||||
44100
|
||||
48000
|
||||
88200
|
||||
96000
|
||||
176400
|
||||
192000
|
||||
];
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [pulseaudio pulsemixer];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue