From 3fc4ecafeb375d1c72c5b48bdd3c5e15bc408975 Mon Sep 17 00:00:00 2001 From: Emery Hemingway Date: Tue, 26 Sep 2023 09:04:33 +0100 Subject: nixos/yggdrasil: add extraArgs option --- nixos/modules/services/networking/yggdrasil.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'nixos/modules/services/networking/yggdrasil.nix') diff --git a/nixos/modules/services/networking/yggdrasil.nix b/nixos/modules/services/networking/yggdrasil.nix index 55a6002d61af..8335583d2dad 100644 --- a/nixos/modules/services/networking/yggdrasil.nix +++ b/nixos/modules/services/networking/yggdrasil.nix @@ -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 = { -- cgit 1.4.1