nixos/yggdrasil: add extraArgs option
This commit is contained in:
parent
fdd898f8f7
commit
3fc4ecafeb
2 changed files with 9 additions and 1 deletions
|
@ -121,6 +121,13 @@ in
|
|||
restarted. Keys are stored at ${keysPath}.
|
||||
'');
|
||||
|
||||
extraArgs = mkOption {
|
||||
type = listOf str;
|
||||
default = [ ];
|
||||
example = [ "-loglevel" "info" ];
|
||||
description = lib.mdDoc "Extra command line arguments.";
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -181,7 +188,7 @@ in
|
|||
"${binYggdrasil} -genconf") + " > /run/yggdrasil/yggdrasil.conf"}
|
||||
|
||||
# start yggdrasil
|
||||
${binYggdrasil} -useconffile /run/yggdrasil/yggdrasil.conf
|
||||
${binYggdrasil} -useconffile /run/yggdrasil/yggdrasil.conf ${lib.strings.escapeShellArgs cfg.extraArgs}
|
||||
'';
|
||||
|
||||
serviceConfig = {
|
||||
|
|
|
@ -116,6 +116,7 @@ in import ./make-test-python.nix ({ pkgs, ...} : {
|
|||
networking.firewall.allowedTCPPorts = [ 43210 ];
|
||||
services.yggdrasil = {
|
||||
enable = true;
|
||||
extraArgs = [ "-loglevel" "error" ];
|
||||
denyDhcpcdInterfaces = [ "ygg0" ];
|
||||
settings = {
|
||||
IfTAPMode = true;
|
||||
|
|
Loading…
Reference in a new issue