diff options
author | makefu <github@syntax-fehler.de> | 2016-02-12 02:17:19 +0100 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2016-02-12 02:17:19 +0100 |
commit | 06a7200d38bf034bdd760727188f6061f064a84e (patch) | |
tree | a0090260249314a3236a6f503b9a3ab11bd2f428 /krebs | |
parent | ecb0d3dd6e97ed01f2ec25710a15ab4497402352 (diff) | |
parent | 2b6a54c31c47667495187f9ff8f9a6009a2652ab (diff) |
Merge remote-tracking branch 'cd/master'
Diffstat (limited to 'krebs')
-rw-r--r-- | krebs/3modules/retiolum.nix | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/krebs/3modules/retiolum.nix b/krebs/3modules/retiolum.nix index 3ebb5e230..407695273 100644 --- a/krebs/3modules/retiolum.nix +++ b/krebs/3modules/retiolum.nix @@ -58,9 +58,9 @@ let default = filterAttrs (_: h: hasAttr cfg.netname h.nets) config.krebs.hosts; description = '' - Hosts which should be part of the tinc configuration. - Note that these hosts must have a correspondingly named network - configured, see <literal>config.krebs.retiolum.netname</literal>. + Hosts to generate <literal>config.krebs.retiolum.hostsPackage</literal>. + Note that these hosts must have a network named + <literal>config.krebs.retiolum.netname</literal>. ''; }; @@ -77,6 +77,20 @@ let '') cfg.hosts)} ''; }; + description = '' + Package of tinc host configuration files. By default, a package will + be generated from <literal>config.krebs.retiolum.hosts</literal>. This + option's main purpose is to expose the generated hosts package to other + modules, like <literal>config.krebs.tinc_graphs</literal>. But it can + also be used to provide a custom hosts directory. + ''; + example = literalExample '' + (pkgs.stdenv.mkDerivation { + name = "my-tinc-hosts"; + src = /home/tv/my-tinc-hosts; + installPhase = "cp -R . $out"; + }) + ''; }; iproutePackage = mkOption { |