1
0
Fork 0
mirror of https://github.com/Mic92/sops-nix.git synced 2025-04-08 09:54:35 +00:00

templates: Add descriptions and use singleLineStr

This commit is contained in:
Janne Heß 2023-04-23 12:56:01 +02:00
parent 8a95e6f8cd
commit 679ad65214
No known key found for this signature in database

View file

@ -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.