How to disable gnome-keyring-daemon automatic startup?


I’m trying to test KeepassXC secret service implementation as described here

But when I try to set it up I get the following warning : Another secret service is running

The culprit seems to be gnome-keyring-daemon

$ dbus-send --session --print-reply --dest=org.freedesktop.DBus / org.freedesktop.DBus.GetConnectionUnixProcessID string:org.freedesktop.secrets
method return time=1586967778.314388 sender=org.freedesktop.DBus -> destination=:1.752 serial=3 reply_serial=2
   uint32 20343
$ ps -p 20343         
  PID TTY          TIME CMD
20343 ?        00:00:00 .gnome-keyring-

After checking that I didn’t have any gnome-keyring-daemon desktop file in my ~/.config/autostart, I tried to set services.gnome3.gnome-keyring.enable to false in my configuration.nix but then on nixos-rebuild switch I get the following error :

error: The option `services.gnome3.gnome-keyring.enable' has conflicting definitions, 
in `/nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/services/x11/desktop-managers/gnome3.nix' 
and `/etc/nixos/configuration.nix' 
and `/nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/programs/geary.nix'.

What is the proper way to disable gnome-keyring-daemon automatic startup at login ?

1 Like

services.gnome3.gnome-keyring.enable = lib.mkForce false; might do the trick.

1 Like

Thanks ! I didn’t knew the mkForce tip.