From 24783445de517d1019ec6db2619a719ee5d112d7 Mon Sep 17 00:00:00 2001 From: Jeeves Date: Tue, 30 Jul 2024 00:24:24 -0600 Subject: [PATCH] more config.network options --- utils.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/utils.nix b/utils.nix index 2caabb1..ee82c34 100644 --- a/utils.nix +++ b/utils.nix @@ -213,14 +213,23 @@ in { (typeString (mkMandatory "proto")) (typeString (mkOptional "ipaddr")) (typeString (mkOptional "netmask")) + (typeString (mkOptional "gateway")) + (typeString (mkOptional "broadcast")) + (typeString (mkOptional "ip6addr")) + (typeString (mkOptional "ip6gw")) (typeInt (mkOptional "ip6assign")) + (typeList (mkOptional "dns")) + (typeInt (mkOptional "layer")) ]) (mkSections "globals" config.network [ (typeString (mkOptional "ula_prefix")) + (typeBool (mkOptional "packet_steering")) ]) (mkSectionsList "device" config.network [ (typeString (mkMandatory "name")) + (typeString (mkOptional "macaddr")) (typeString (mkOptional "type")) + (typeString (mkOptional "ifname")) (typeList (mkOptional "ports")) ]) ];