nixos/gnupg: require sockets.target, not just gpg-agent.socket

If other sockets are enabled, such as gpg-agent-browser.socket,
those should be started before gpg-agent.service as well.

Change-Id: I29d3f4b19db9e687425b594dcef863a88ec296c9
This commit is contained in:
edef 2023-08-12 03:17:24 +00:00
parent 664c30f76b
commit 8131fc5ee6

View File

@ -102,7 +102,7 @@ in
unitConfig = {
Description = "GnuPG cryptographic agent and passphrase cache";
Documentation = "man:gpg-agent(1)";
Requires = [ "gpg-agent.socket" ];
Requires = [ "sockets.target" ];
};
serviceConfig = {
ExecStart = "${cfg.package}/bin/gpg-agent --supervised";