mirror of
https://github.com/Mic92/sops-nix.git
synced 2024-12-14 11:57:52 +00:00
Add some missing literalExpression
This commit is contained in:
parent
c504fd7ac9
commit
26642e8f19
3 changed files with 6 additions and 6 deletions
|
@ -54,7 +54,7 @@ let
|
|||
sopsFile = lib.mkOption {
|
||||
type = lib.types.path;
|
||||
default = cfg.defaultSopsFile;
|
||||
defaultText = "\${config.sops.defaultSopsFile}";
|
||||
defaultText = lib.literalExpression "\${config.sops.defaultSopsFile}";
|
||||
description = ''
|
||||
Sops file the secret is loaded from.
|
||||
'';
|
||||
|
|
|
@ -89,7 +89,7 @@ let
|
|||
};
|
||||
sopsFile = lib.mkOption {
|
||||
type = lib.types.path;
|
||||
defaultText = "\${config.sops.defaultSopsFile}";
|
||||
defaultText = lib.literalExpression "\${config.sops.defaultSopsFile}";
|
||||
description = ''
|
||||
Sops file the secret is loaded from.
|
||||
'';
|
||||
|
|
|
@ -69,7 +69,7 @@ in {
|
|||
group = mkOption {
|
||||
type = singleLineStr;
|
||||
default = users.${config.owner}.group;
|
||||
defaultText = ''config.users.users.''${cfg.owner}.group'';
|
||||
defaultText = lib.literalExpression ''config.users.users.''${cfg.owner}.group'';
|
||||
description = ''
|
||||
Group of the file.
|
||||
'';
|
||||
|
@ -77,7 +77,7 @@ in {
|
|||
file = mkOption {
|
||||
type = types.path;
|
||||
default = pkgs.writeText config.name config.content;
|
||||
defaultText = ''pkgs.writeText config.name config.content'';
|
||||
defaultText = lib.literalExpression ''pkgs.writeText config.name config.content'';
|
||||
example = "./configuration-template.conf";
|
||||
description = ''
|
||||
File used as the template. When this value is specified, `sops.templates.<name>.content` is ignored.
|
||||
|
|
Loading…
Reference in a new issue