Further modularization of machine
This commit is contained in:
+372
-372
File diff suppressed because it is too large
Load Diff
+6
-6
@@ -597,19 +597,19 @@ This sets the dbus implementation
|
|||||||
#+BEGIN_SRC nix :tangle assets/flake/machines/traveldroid/dbus.nix :noweb tangle :mkdirp yes :eval never-html
|
#+BEGIN_SRC nix :tangle assets/flake/machines/traveldroid/dbus.nix :noweb tangle :mkdirp yes :eval never-html
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
{
|
{
|
||||||
services.dbus = {
|
# Enable dbus-broker as the D-Bus implementation
|
||||||
enable = true;
|
services.dbus-broker.enable = true;
|
||||||
package = pkgs.dbus-broker; # Use dbus-broker instead of the reference dbus
|
|
||||||
};
|
|
||||||
|
|
||||||
# Optional: Configure dbus-broker settings via environment variables
|
# Disable the default dbus service to avoid conflicts
|
||||||
|
services.dbus.enable = false;
|
||||||
|
|
||||||
|
# Configure dbus-broker via its launch configuration file
|
||||||
environment.etc."dbus-broker/launch.conf".text = ''
|
environment.etc."dbus-broker/launch.conf".text = ''
|
||||||
[General]
|
[General]
|
||||||
LogLevel=warning
|
LogLevel=warning
|
||||||
MaxConnectionsPerUser=2048
|
MaxConnectionsPerUser=2048
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
** =assets/flake/machines/traveldroid/bluetooth.nix=
|
** =assets/flake/machines/traveldroid/bluetooth.nix=
|
||||||
|
|||||||
@@ -1,11 +1,12 @@
|
|||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
{
|
{
|
||||||
services.dbus = {
|
# Enable dbus-broker as the D-Bus implementation
|
||||||
enable = true;
|
services.dbus-broker.enable = true;
|
||||||
package = pkgs.dbus-broker; # Use dbus-broker instead of the reference dbus
|
|
||||||
};
|
|
||||||
|
|
||||||
# Optional: Configure dbus-broker settings via environment variables
|
# Disable the default dbus service to avoid conflicts
|
||||||
|
services.dbus.enable = false;
|
||||||
|
|
||||||
|
# Configure dbus-broker via its launch configuration file
|
||||||
environment.etc."dbus-broker/launch.conf".text = ''
|
environment.etc."dbus-broker/launch.conf".text = ''
|
||||||
[General]
|
[General]
|
||||||
LogLevel=warning
|
LogLevel=warning
|
||||||
|
|||||||
Reference in New Issue
Block a user