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";