fix errors with missing function parameters

main
n0emis 3 years ago
parent c1c99958fa
commit 833c15d4bf
Signed by: n0emis
GPG Key ID: 00FAF748B777CF10

@ -9,11 +9,12 @@ let
mkDomain = name: domCfg:
let
cidrToAddress = cidr: head (splitString "/" cidr);
mkIfName = substring 0 16 (type:
mkIfName = type: substring 0 16 (
if type == "bridge" then "br-${name}" else
if type == "batman" then "bat-${name}" else
if type == "fastd" then "fd-${name}" else
throw "unknown interface type ${type}, coud not generate name");
throw "unknown interface type ${type}, coud not generate name"
);
in {
#### NULL-ROUTES ####
networks."10-lo" = {

@ -221,7 +221,7 @@ let
blacklist = if (values.blacklistedKeys == null) then null else pkgs.writeText "fastd-blacklist-${name}" values.blacklistedKeys;
verifyScript = if (values.verifyScript != null) then pkgs.writeScript "fastd-verify-${name}.sh"
verifyScript = if (values.verifyScript != null) then pkgs.writeScript "fastd-verify-${name}.sh" values.verifyScript
else if (values.blacklistedKeys != null) then pkgs.writeScript "fastd-verify-${name}.sh" ''
#!${pkgs.stdenv.shell}
PEER_KEY=$1

Loading…
Cancel
Save