1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-26 21:19:45 +01:00

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 The solution on NixOS is to add
[source,nix] [source,nix]
services.dbus.packages = with pkgs; [ gnome.dconf ]; programs.dconf.enable = true;
to your system configuration. to your system configuration.

View file

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

View file

@ -12,7 +12,13 @@ in {
meta.maintainers = [ maintainers.jonringer ]; meta.maintainers = [ maintainers.jonringer ];
options.services.pulseeffects = { 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 { package = mkOption {
type = types.package; 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" # "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 ]; 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 = { systemd.user.services.pulseeffects = {
Unit = { Unit = {
Description = "Pulseeffects daemon"; Description = "Pulseeffects daemon";