Further modularization of machine

This commit is contained in:
2026-03-13 19:45:07 +01:00
parent 07c2856fd4
commit 0f4ce11546
7 changed files with 505 additions and 423 deletions
@@ -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" ];
};
}