summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2016-02-11 23:49:45 +0100
committertv <tv@krebsco.de>2016-02-11 23:50:52 +0100
commit8c87356aee561fd8bc50dc2b7029ab30118f0d2c (patch)
treebf72baf736723902def905f1cdea4935812fe87b
parent6cbe21aac7680af7a6c6c2ea367ee0569d53bb21 (diff)
krebs.retiolum.hosts*: bump description
-rw-r--r--krebs/3modules/retiolum.nix20
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 {