diff options
author | lassulus <lass@aidsballs.de> | 2015-12-29 19:24:01 +0100 |
---|---|---|
committer | lassulus <lass@aidsballs.de> | 2015-12-29 19:24:01 +0100 |
commit | 42380546976c15d99dc0e9a65607ba4aafb31590 (patch) | |
tree | 4b0ae218de102219e9865ae4da65cef8490fafaa /krebs/4lib | |
parent | f22fe4e5d97237dbe76bc856909950487634c7be (diff) | |
parent | 676d0f748138f0e1fa3cb2177b5a08a857f17fac (diff) |
Merge remote-tracking branch 'gum/master'
Diffstat (limited to 'krebs/4lib')
-rw-r--r-- | krebs/4lib/types.nix | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/krebs/4lib/types.nix b/krebs/4lib/types.nix index c52afa246..81ce659bd 100644 --- a/krebs/4lib/types.nix +++ b/krebs/4lib/types.nix @@ -177,4 +177,21 @@ types // rec { addr6 = str; hostname = str; label = str; + + krebs.file-location = types.submodule { + options = { + # TODO user + host = mkOption { + type = host; + }; + # TODO merge with ssl.privkey.path + path = mkOption { + type = types.either types.path types.str; + apply = x: { + path = toString x; + string = x; + }.${typeOf x}; + }; + }; + }; } |