From 679ad65214c66f270359893d4aeebb30e06b0f87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janne=20He=C3=9F?= Date: Sun, 23 Apr 2023 12:56:01 +0200 Subject: [PATCH] templates: Add descriptions and use singleLineStr --- modules/sops/templates/default.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/modules/sops/templates/default.nix b/modules/sops/templates/default.nix index 1db686c..0afc840 100644 --- a/modules/sops/templates/default.nix +++ b/modules/sops/templates/default.nix @@ -9,17 +9,19 @@ let in { options.sops = { templates = mkOption { + description = "Templates for secret files"; type = attrsOf (submodule ({ config, ... }: { options = { name = mkOption { - type = str; + type = singleLineStr; default = config._module.args.name; description = '' Name of the file used in /run/secrets-rendered ''; }; path = mkOption { - type = str; + description = "Path where the rendered file will be placed"; + type = singleLineStr; default = "/run/secrets-rendered/${config.name}"; }; content = mkOption { @@ -30,21 +32,21 @@ in { ''; }; mode = mkOption { - type = str; + type = singleLineStr; default = "0400"; description = '' Permissions mode of the rendered secret file in octal. ''; }; owner = mkOption { - type = str; + type = singleLineStr; default = "root"; description = '' User of the file. ''; }; group = mkOption { - type = str; + type = singleLineStr; default = users.${config.owner}.group; description = '' Group of the file.