1 diff --git a/nixos/modules/security/gnupg.nix b/nixos/modules/security/gnupg.nix
2 index 7ddb1fac2f5..89a16bab2e4 100644
3 --- a/nixos/modules/security/gnupg.nix
4 +++ b/nixos/modules/security/gnupg.nix
5 @@ -225,6 +225,7 @@ config = lib.mkIf (cfg.secrets != {}) {
6 description = "Install secret ${secret.path}";
7 after = lib.optional cfg.enableGpgAgent "gpg-agent.service";
8 wants = lib.optional cfg.enableGpgAgent "gpg-agent.service";
9 + wantedBy = ["multi-user.target"];