tinc: add logLevel with default of 3

This commit is contained in:
lassulus 2022-03-03 10:53:25 +01:00
parent a49a815115
commit 87a44dd157

View File

@ -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 = {