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.
This commit is contained in:
Robert Helgesson 2021-09-23 22:28:53 +02:00
parent 58aa667e28
commit eee807560b
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
3 changed files with 10 additions and 8 deletions

View file

@ -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.

View file

@ -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;

View file

@ -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";