Further modularization of machine
This commit is contained in:
+404
-368
File diff suppressed because it is too large
Load Diff
+35
-6
@@ -607,6 +607,39 @@ This sets the dbus implementation
|
|||||||
}
|
}
|
||||||
#+END_SRC
|
#+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=
|
** =assets/flake/machines/traveldroid/audio.nix=
|
||||||
This sets audiosystem for this machine
|
This sets audiosystem for this machine
|
||||||
#+BEGIN_SRC nix :tangle assets/flake/machines/traveldroid/audio.nix :noweb tangle :mkdirp yes :eval never-html
|
#+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
|
pulse.enable = true; # PulseAudio compatibility
|
||||||
wireplumber.enable = true; # Session manager for PipeWire
|
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;
|
security.rtkit.enable = true;
|
||||||
# Optional: Enable Bluetooth audio support
|
|
||||||
services.bluez = {
|
|
||||||
enable = true;
|
|
||||||
audioSupport = true;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
|
|||||||
@@ -6,11 +6,7 @@
|
|||||||
pulse.enable = true; # PulseAudio compatibility
|
pulse.enable = true; # PulseAudio compatibility
|
||||||
wireplumber.enable = true; # Session manager for PipeWire
|
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;
|
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
|
||||||
|
];
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user