diff options
Diffstat (limited to '')
-rw-r--r-- | modules/nixos/sils/meta.nix | 22 |
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; }; }; } |