summaryrefslogtreecommitdiffstats
path: root/krebs/3modules/retiolum.nix
diff options
context:
space:
mode:
authorlassulus <lass@aidsballs.de>2015-12-14 15:05:36 +0100
committerlassulus <lass@aidsballs.de>2015-12-14 15:05:36 +0100
commitd94784efbecbd437ec6268bb9bfca57a8088d6e8 (patch)
tree7806084d08adc5ffec4c3372fa9145a8d9df415e /krebs/3modules/retiolum.nix
parent9c1207a52825da2f7d9c55304f864d68055cedb8 (diff)
parent6f150af8acf2195188518bf53d0330da7a4bb8f8 (diff)
Merge remote-tracking branch 'gum/master'
Diffstat (limited to 'krebs/3modules/retiolum.nix')
-rw-r--r--krebs/3modules/retiolum.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/krebs/3modules/retiolum.nix b/krebs/3modules/retiolum.nix
index 633642537..28ac67306 100644
--- a/krebs/3modules/retiolum.nix
+++ b/krebs/3modules/retiolum.nix
@@ -50,6 +50,14 @@ let
'';
};
+ extraConfig = mkOption {
+ type = types.str;
+ default = "";
+ description = ''
+ Extra Configuration to be appended to tinc.conf
+ '';
+ };
+
tincPackage = mkOption {
type = types.package;
default = pkgs.tinc;
@@ -203,6 +211,7 @@ let
Interface = ${cfg.network}
${concatStrings (map (c : "ConnectTo = " + c + "\n") cfg.connectTo)}
PrivateKeyFile = /tmp/retiolum-rsa_key.priv
+ ${cfg.extraConfig}
EOF
# source: krebscode/painload/retiolum/scripts/tinc_setup/tinc-up