From aceb2862d35a31cd7511d88e6349cc70f3070fbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Mon, 18 Sep 2023 18:31:14 +0200 Subject: [PATCH] nixos: fix typo in assertion message when no key source is configured --- modules/home-manager/sops.nix | 2 +- modules/sops/default.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/home-manager/sops.nix b/modules/home-manager/sops.nix index 141f3a7..a063bc6 100644 --- a/modules/home-manager/sops.nix +++ b/modules/home-manager/sops.nix @@ -217,7 +217,7 @@ in { config = lib.mkIf (cfg.secrets != {}) { assertions = [{ assertion = cfg.gnupg.home != null || cfg.gnupg.sshKeyPaths != [] || cfg.age.keyFile != null || cfg.age.sshKeyPaths != []; - message = "No key source configurated for sops"; + message = "No key source configured for sops. Either set services.openssh.enable or set sops.age.keyFile or sops.gnupg.home"; } { assertion = !(cfg.gnupg.home != null && cfg.gnupg.sshKeyPaths != []); message = "Exactly one of sops.gnupg.home and sops.gnupg.sshKeyPaths must be set"; diff --git a/modules/sops/default.nix b/modules/sops/default.nix index 7d9cf06..a3f1c96 100644 --- a/modules/sops/default.nix +++ b/modules/sops/default.nix @@ -323,7 +323,7 @@ in { (mkIf (cfg.secrets != {}) { assertions = [{ assertion = cfg.gnupg.home != null || cfg.gnupg.sshKeyPaths != [] || cfg.age.keyFile != null || cfg.age.sshKeyPaths != []; - message = "No key source configurated for sops"; + message = "No key source configured for sops. Either set services.openssh.enable or set sops.age.keyFile or sops.gnupg.home"; } { assertion = !(cfg.gnupg.home != null && cfg.gnupg.sshKeyPaths != []); message = "Exactly one of sops.gnupg.home and sops.gnupg.sshKeyPaths must be set";