Further modularization of machine
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true; # ALSA compatibility
|
||||
pulse.enable = true; # PulseAudio compatibility
|
||||
wireplumber.enable = true; # Session manager for PipeWire
|
||||
};
|
||||
# Optional: Add realtime privileges for pro audio (if needed)
|
||||
security.rtkit.enable = true;
|
||||
# Optional: Enable Bluetooth audio support
|
||||
services.bluez = {
|
||||
enable = true;
|
||||
audioSupport = true;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
services.dbus = {
|
||||
enable = true;
|
||||
package = pkgs.dbus-broker; # Use dbus-broker for performance
|
||||
};
|
||||
services.dbus-broker.enable = true; # Explicitly enable the broker
|
||||
}
|
||||
@@ -13,6 +13,9 @@
|
||||
./boot.nix
|
||||
./hardware-configuration.nix
|
||||
./machine.nix
|
||||
./dbus.nix
|
||||
./audio.nix
|
||||
./xdg.nix
|
||||
inputs.home-manager.nixosModules.home-manager
|
||||
];
|
||||
}
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
config.system.default = [ "hyprland" "gtk" ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user