Further modularization of machine
This commit is contained in:
+35
-6
@@ -607,6 +607,39 @@ This sets the dbus implementation
|
||||
}
|
||||
#+END_SRC
|
||||
|
||||
** =assets/flake/machines/traveldroid/bluetooth.nix=
|
||||
This sets the bluetooth implementation
|
||||
#+BEGIN_SRC nix :tangle assets/flake/machines/traveldroid/bluetooth.nix :noweb tangle :mkdirp yes :eval never-html
|
||||
{ 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
|
||||
];
|
||||
}
|
||||
#+END_SRC
|
||||
|
||||
** =assets/flake/machines/traveldroid/audio.nix=
|
||||
This sets audiosystem for this machine
|
||||
#+BEGIN_SRC nix :tangle assets/flake/machines/traveldroid/audio.nix :noweb tangle :mkdirp yes :eval never-html
|
||||
@@ -618,13 +651,9 @@ This sets audiosystem for this machine
|
||||
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;
|
||||
};
|
||||
}
|
||||
#+END_SRC
|
||||
|
||||
|
||||
Reference in New Issue
Block a user