dbus: improve recommended NixOS configuration

Specifically, instead of

    services.dbus.packages = with pkgs; [ gnome.dconf ];

we now recommend

    programs.dconf.enable = true;

which does the same and more.
main
Robert Helgesson 3 years ago
parent 58aa667e28
commit eee807560b
No known key found for this signature in database
GPG Key ID: 36BDAA14C2797E89
  1. 2
      docs/faq.adoc
  2. 5
      modules/services/easyeffects.nix
  3. 11
      modules/services/pulseeffects.nix

@ -100,7 +100,7 @@ error: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name ca.desrt.
The solution on NixOS is to add
[source,nix]
services.dbus.packages = with pkgs; [ gnome.dconf ];
programs.dconf.enable = true;
to your system configuration.

@ -16,10 +16,9 @@ in {
Easyeffects daemon.
Note, it is necessary to add
<programlisting language="nix">
services.dbus.packages = with pkgs; [ gnome.dconf ];
programs.dconf.enable = true;
</programlisting>
to your system configuration for the daemon to work correctly
'';
to your system configuration for the daemon to work correctly'';
preset = mkOption {
type = types.str;

@ -12,7 +12,13 @@ in {
meta.maintainers = [ maintainers.jonringer ];
options.services.pulseeffects = {
enable = mkEnableOption "Pulseeffects daemon";
enable = mkEnableOption ''
Pulseeffects daemon
Note, it is necessary to add
<programlisting language="nix">
programs.dconf.enable = true;
</programlisting>
to your system configuration for the daemon to work correctly'';
package = mkOption {
type = types.package;
@ -42,9 +48,6 @@ in {
# "AT-SPI: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files"
home.packages = [ cfg.package pkgs.at-spi2-core ];
# Will need to add `services.dbus.packages = with pkgs; [ gnome.dconf ];`
# to /etc/nixos/configuration.nix for daemon to work correctly
systemd.user.services.pulseeffects = {
Unit = {
Description = "Pulseeffects daemon";

Loading…
Cancel
Save