summary refs log tree commit diff
path: root/nixos/modules/programs
diff options
context:
space:
mode:
authoredef <edef@edef.eu>2023-08-12 03:17:24 +0000
committeredef <edef@edef.eu>2023-08-12 03:19:10 +0000
commit8131fc5ee61d7730270f7311f7db68c532d39f1a (patch)
tree6a1c325ec38e91c4b3a87ff62b0d08866872b150 /nixos/modules/programs
parent664c30f76bdb5a5cb739675bf1b513a7a8ed5677 (diff)
downloadnixpkgs-8131fc5ee61d7730270f7311f7db68c532d39f1a.tar
nixpkgs-8131fc5ee61d7730270f7311f7db68c532d39f1a.tar.gz
nixpkgs-8131fc5ee61d7730270f7311f7db68c532d39f1a.tar.bz2
nixpkgs-8131fc5ee61d7730270f7311f7db68c532d39f1a.tar.lz
nixpkgs-8131fc5ee61d7730270f7311f7db68c532d39f1a.tar.xz
nixpkgs-8131fc5ee61d7730270f7311f7db68c532d39f1a.tar.zst
nixpkgs-8131fc5ee61d7730270f7311f7db68c532d39f1a.zip
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
Diffstat (limited to 'nixos/modules/programs')
-rw-r--r--nixos/modules/programs/gnupg.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/programs/gnupg.nix b/nixos/modules/programs/gnupg.nix
index 697b6e9a0bd..12ef8671b74 100644
--- a/nixos/modules/programs/gnupg.nix
+++ b/nixos/modules/programs/gnupg.nix
@@ -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";