+
+ # All credit to @jordanisaacs for the solution:
+ # https://github.com/jordanisaacs/dotfiles/blob/4a779f42204c4fff743c12b26e28567eaf8cc334/modules/users/graphical/shared.nix#L174
+ systemd.user.services.gnome-keyring = {
+ Unit = {
+ Description = "GNOME Keyring";
+ PartOf = [ "graphical-session-pre.target" ];
+ };
+
+ Service = {
+ ExecStart =
+ "/run/wrappers/bin/gnome-keyring-daemon --start --foreground";
+ Restart = "on-abort";
+ };
+
+ Install = { WantedBy = [ "graphical-session-pre.target" ]; };
+ };