summaryrefslogtreecommitdiffstats
path: root/krebs
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2022-03-03 10:53:25 +0100
committerlassulus <lassulus@lassul.us>2022-03-03 10:53:25 +0100
commit87a44dd1573cbdc8f0fc3553b0896b470bcfa44d (patch)
treed20a2ea23ae70d0c3970aa28de8d100ea18445ca /krebs
parenta49a8151159876c703b56ff0f52f51d70be5af91 (diff)
tinc: add logLevel with default of 3
Diffstat (limited to 'krebs')
-rw-r--r--krebs/3modules/tinc.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/krebs/3modules/tinc.nix b/krebs/3modules/tinc.nix
index e9d1b30ae..1b28628d6 100644
--- a/krebs/3modules/tinc.nix
+++ b/krebs/3modules/tinc.nix
@@ -19,6 +19,7 @@ with import <stockholm/lib>;
"hosts" = tinc.config.hostsPackage;
"tinc.conf" = pkgs.writeText "${netname}-tinc.conf" ''
Name = ${tinc.config.host.name}
+ LogLevel = ${toString tinc.config.logLevel}
Interface = ${netname}
Broadcast = no
${concatMapStrings (c: "ConnectTo = ${c}\n") tinc.config.connectTo}
@@ -193,6 +194,14 @@ with import <stockholm/lib>;
'';
};
+ logLevel = mkOption {
+ type = types.int;
+ description = ''
+ LogLevel in tinc.conf
+ '';
+ default = 3;
+ };
+
user = mkOption {
type = types.user;
default = {