This issue is fixed in 19.03. If the login manager is GDM, then set the configuration option
{ # ...
security.pam.services.gdm.enableGnomeKeyring = true;
}
If you don't use any login manager, you need to set the following:
{ # ...
services.gnome3.gnome-keyring.enable = true;
}