From eee807560b4c2c7cdda00913056429d85a090eeb Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Thu, 23 Sep 2021 22:28:53 +0200 Subject: [PATCH] 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. --- docs/faq.adoc | 2 +- modules/services/easyeffects.nix | 5 ++--- modules/services/pulseeffects.nix | 11 +++++++---- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/docs/faq.adoc b/docs/faq.adoc index 78a13a56b..c5615fdbf 100644 --- a/docs/faq.adoc +++ b/docs/faq.adoc @@ -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. diff --git a/modules/services/easyeffects.nix b/modules/services/easyeffects.nix index bc87c2096..001ff5d02 100644 --- a/modules/services/easyeffects.nix +++ b/modules/services/easyeffects.nix @@ -16,10 +16,9 @@ in { Easyeffects daemon. Note, it is necessary to add - services.dbus.packages = with pkgs; [ gnome.dconf ]; + programs.dconf.enable = true; - 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; diff --git a/modules/services/pulseeffects.nix b/modules/services/pulseeffects.nix index b475e4366..564bb0671 100644 --- a/modules/services/pulseeffects.nix +++ b/modules/services/pulseeffects.nix @@ -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 + + programs.dconf.enable = true; + + 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";