summary refs log tree commit diff stats
path: root/modules/nixos
diff options
context:
space:
mode:
authorSilas Schöffel <sils@sils.li>2024-04-20 19:20:26 +0200
committerSilas Schöffel <sils@sils.li>2024-04-20 19:20:26 +0200
commit24795885abd8d18985f883174656e2d16295fb5b (patch)
tree1d7f4bd2d90f07f09a459f5da60f2f851e3188e4 /modules/nixos
parentsils/basesystem: explicitely enable redistributable firmware (diff)
downloadnix-config-24795885abd8d18985f883174656e2d16295fb5b.tar.gz
nix-config-24795885abd8d18985f883174656e2d16295fb5b.zip
sils/meta: make declarations nullable
Diffstat (limited to 'modules/nixos')
-rw-r--r--modules/nixos/sils/meta.nix22
1 files changed, 15 insertions, 7 deletions
diff --git a/modules/nixos/sils/meta.nix b/modules/nixos/sils/meta.nix
index 51810b5..57ef081 100644
--- a/modules/nixos/sils/meta.nix
+++ b/modules/nixos/sils/meta.nix
@@ -1,23 +1,31 @@
-{lib, ...}: {
+{lib, ...}: let
+  nullable = type: lib.types.nullOr type;
+in {
   options.sils.meta = {
     bootPart = lib.mkOption {
-      type = lib.types.str;
+      type = nullable lib.types.str;
+      default = null;
     };
     bootstrapSystem = lib.mkEnableOption;
     globalDataDir = lib.mkOption {
-      type = lib.types.str;
+      type = nullable lib.types.str;
+      default = null;
     };
     hostname = lib.mkOption {
-      type = lib.types.str;
+      type = nullable lib.types.str;
+      default = null;
     };
     mainDisk = lib.mkOption {
-      type = lib.types.str;
+      type = nullable lib.types.str;
+      default = null;
     };
     rootPart = lib.mkOption {
-      type = lib.types.str;
+      type = nullable lib.types.str;
+      default = null;
     };
     system = lib.mkOption {
-      type = lib.types.str;
+      type = nullable lib.types.str;
+      default = null;
     };
   };
 }