letting it auto run pretty much, god i don't know how to program anymore. This is kinda a joke
This commit is contained in:
42
modules/hardware/audio.nix
Normal file
42
modules/hardware/audio.nix
Normal file
@@ -0,0 +1,42 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
{
|
||||
options.hardware.audio.pipewire.enable = mkEnableOption "PipeWire audio system";
|
||||
|
||||
config = mkIf config.hardware.audio.pipewire.enable {
|
||||
# PipeWire configuration
|
||||
security.rtkit.enable = true;
|
||||
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
jack.enable = true;
|
||||
};
|
||||
|
||||
# Audio packages
|
||||
environment.systemPackages = with pkgs; [
|
||||
# Audio control
|
||||
pavucontrol
|
||||
pulsemixer
|
||||
alsamixer
|
||||
|
||||
# Audio tools
|
||||
audacity
|
||||
pulseaudio
|
||||
|
||||
# Bluetooth audio
|
||||
bluez
|
||||
bluez-tools
|
||||
];
|
||||
|
||||
# Disable PulseAudio (conflicts with PipeWire)
|
||||
hardware.pulseaudio.enable = false;
|
||||
|
||||
# Audio group for user
|
||||
users.groups.audio = {};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user