diff options
author | tv <tv@krebsco.de> | 2016-02-06 18:54:01 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2016-02-06 18:54:01 +0100 |
commit | 29746aec06b7d42d3c87245f6f14f048234251e4 (patch) | |
tree | 2b999fc70077f40331665ef39b8a0f7c5d225910 /krebs/4lib | |
parent | c784d271c5dc8783e5e6308baf4f6dd26430bfca (diff) |
krebs.{backup.plans,hosts,users}.*.name: add default value
Diffstat (limited to 'krebs/4lib')
-rw-r--r-- | krebs/4lib/types.nix | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/krebs/4lib/types.nix b/krebs/4lib/types.nix index 6c396a132..2907a413a 100644 --- a/krebs/4lib/types.nix +++ b/krebs/4lib/types.nix @@ -10,6 +10,7 @@ types // rec { options = { name = mkOption { type = label; + default = config._module.args.name; }; dc = mkOption { type = label; @@ -155,19 +156,20 @@ types // rec { merge = mergeOneOption; }; - user = submodule { + user = submodule ({ config, ... }: { options = { mail = mkOption { type = str; # TODO retiolum mail address }; name = mkOption { type = str; # TODO + default = config._module.args.name; }; pubkey = mkOption { type = str; }; }; - }; + }); # TODO addr = str; |