2024-09-09 00:22:14 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
2024-09-13 01:50:53 +00:00
|
|
|
with lib; let
|
2024-09-09 00:22:14 +00:00
|
|
|
cfg = config.custom.services.dbus;
|
2024-09-13 01:50:53 +00:00
|
|
|
in {
|
|
|
|
options.custom.services.dbus.enable = mkOption {default = false;};
|
2024-09-09 00:22:14 +00:00
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
# https://github.com/bus1/dbus-broker
|
|
|
|
# TODO: Scour journal for dbus errors
|
2024-09-13 01:50:53 +00:00
|
|
|
environment.systemPackages = with pkgs; [dbus];
|
2024-09-09 00:22:14 +00:00
|
|
|
services.dbus.implementation = "broker"; # Newer message bus
|
|
|
|
};
|
|
|
|
}
|