1
0
Fork 0
mirror of https://github.com/Mic92/sops-nix.git synced 2024-12-15 17:50:51 +00:00

Add defaultText to some options to make flake-info succeed

This commit is contained in:
Naïm Favier 2022-02-26 16:20:19 +01:00
parent cda46de69a
commit 4e887466a1
No known key found for this signature in database
GPG key ID: 49B07322580B7EE2

View file

@ -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 <option>config.services.openssh.hostKeys</option>";
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 <option>config.services.openssh.hostKeys</option>";
description = ''
Path to ssh keys added as GPG keys during sops description.
This option must be explicitly unset if <literal>config.sops.gnupg.sshKeyPaths</literal> is set.