diff --git a/nixos/modules/programs/gnupg.nix b/nixos/modules/programs/gnupg.nix index f2f5fe4ea80b..8af55f38992f 100644 --- a/nixos/modules/programs/gnupg.nix +++ b/nixos/modules/programs/gnupg.nix @@ -71,7 +71,7 @@ in wantedBy = [ "sockets.target" ]; }; - systemd.user.sockets.dirmngr = { + systemd.user.sockets.dirmngr = mkIf cfg.dirmngr.enable { wantedBy = [ "sockets.target" ]; };