ctucx.git: nixfiles

ctucx' nixfiles

commit a412289bc46b49356425e54ede25e51b177f5298
parent e935047ad5299b86cb5e947b9329a25e7095383f
Author: Leah (ctucx) <git@ctu.cx>
Date: Sat, 16 Mar 2024 12:06:53 +0100

modules: set default values for networking options
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/modules/default.nix b/modules/default.nix
@@ -37,10 +37,10 @@
   ]);
 
   options = {
-    networking.usePBBUplink  = lib.mkOption { type = lib.types.bool; };
-    networking.primaryIP     = lib.mkOption { type = lib.types.str; };
-    networking.primaryIP4    = lib.mkOption { type = lib.types.str; };
-    networking.secondaryIP4  = lib.mkOption { type = lib.types.str; };
+    networking.usePBBUplink  = lib.mkOption { type = lib.types.bool; default = false; };
+    networking.primaryIP     = lib.mkOption { type = lib.types.str; default = ""; };
+    networking.primaryIP4    = lib.mkOption { type = lib.types.str; default = ""; };
+    networking.secondaryIP4  = lib.mkOption { type = lib.types.str; default = ""; };
   };
 
 }