Further modularization of machine

This commit is contained in:
2026-03-13 19:52:56 +01:00
parent ef89893db5
commit df97635951
4 changed files with 469 additions and 380 deletions
@@ -6,11 +6,7 @@
pulse.enable = true; # PulseAudio compatibility
wireplumber.enable = true; # Session manager for PipeWire
};
# Optional: Add realtime privileges for pro audio (if needed)
# Realtime privileges for pro audio (optional)
security.rtkit.enable = true;
# Optional: Enable Bluetooth audio support
services.bluez = {
enable = true;
audioSupport = true;
};
}
@@ -0,0 +1,28 @@
{ config, pkgs, ... }:
{
# Enable Bluetooth hardware and daemon
hardware.bluetooth = {
enable = true;
powerOnBoot = true;
packages = with pkgs; [ bluez ];
};
# Enable Bluetooth audio support in PipeWire
services.pipewire = {
config.pulse = {
bluez5.enable = true;
};
};
# Optional: Additional Bluetooth settings
hardware.bluetooth.extraConfig = ''
AutoEnable=true
DiscoverableTimeout=0
PairableTimeout=0
'';
# Install a graphical Bluetooth manager (optional)
environment.systemPackages = with pkgs; [
blueman
];
}