From 4e887466a1d0e5394c846f3c01e809a1238bac5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Na=C3=AFm=20Favier?= Date: Sat, 26 Feb 2022 16:20:19 +0100 Subject: [PATCH] Add defaultText to some options to make flake-info succeed --- modules/sops/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/sops/default.nix b/modules/sops/default.nix index c4f9452..5c0b694 100644 --- a/modules/sops/default.nix +++ b/modules/sops/default.nix @@ -64,6 +64,7 @@ let group = mkOption { type = types.str; default = users.${config.owner}.group; + defaultText = literalExpression "config.users.users.\${owner}.group"; description = '' Group of the file. ''; @@ -229,6 +230,7 @@ in { sshKeyPaths = mkOption { type = types.listOf types.path; default = defaultImportKeys "ed25519"; + defaultText = literalDocBook "The ed25519 keys from "; description = '' Paths to ssh keys added as age keys during sops description. ''; @@ -248,6 +250,7 @@ in { sshKeyPaths = mkOption { type = types.listOf types.path; default = defaultImportKeys "rsa"; + defaultText = literalDocBook "The rsa keys from "; description = '' Path to ssh keys added as GPG keys during sops description. This option must be explicitly unset if config.sops.gnupg.sshKeyPaths is set.