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
+404 -368
View File
File diff suppressed because it is too large Load Diff
+35 -6
View File
@@ -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
@@ -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
];
}