From f37049e85f1a7152746f1869bddf5e66a9f2fdf3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8C=97=E9=9B=81=20Cryolitia?= Date: Thu, 9 May 2024 05:26:01 +0800 Subject: [PATCH] gpg: delete default settings fix https://github.com/nix-community/home-manager/issues/5383 --- modules/programs/gpg.nix | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/modules/programs/gpg.nix b/modules/programs/gpg.nix index 145389212..8e48a614d 100644 --- a/modules/programs/gpg.nix +++ b/modules/programs/gpg.nix @@ -240,28 +240,10 @@ in { }; config = mkIf cfg.enable { + # To prevent error: The option `programs.gpg.settings' is used but not defined. programs.gpg.settings = { - personal-cipher-preferences = mkDefault "AES256 AES192 AES"; - personal-digest-preferences = mkDefault "SHA512 SHA384 SHA256"; - personal-compress-preferences = mkDefault "ZLIB BZIP2 ZIP Uncompressed"; - default-preference-list = mkDefault - "SHA512 SHA384 SHA256 AES256 AES192 AES ZLIB BZIP2 ZIP Uncompressed"; - cert-digest-algo = mkDefault "SHA512"; - s2k-digest-algo = mkDefault "SHA512"; - s2k-cipher-algo = mkDefault "AES256"; - charset = mkDefault "utf-8"; - fixed-list-mode = mkDefault true; - no-comments = mkDefault true; - no-emit-version = mkDefault true; - keyid-format = mkDefault "0xlong"; - list-options = mkDefault "show-uid-validity"; - verify-options = mkDefault "show-uid-validity"; - with-fingerprint = mkDefault true; - require-cross-certification = mkDefault true; - no-symkey-cache = mkDefault true; - use-agent = mkDefault true; + # no defaults for gpg }; - programs.gpg.scdaemonSettings = { # no defaults for scdaemon };