diff options
author | Silas Schöffel <sils@sils.li> | 2024-04-20 19:20:26 +0200 |
---|---|---|
committer | Silas Schöffel <sils@sils.li> | 2024-04-20 19:20:26 +0200 |
commit | 24795885abd8d18985f883174656e2d16295fb5b (patch) | |
tree | 1d7f4bd2d90f07f09a459f5da60f2f851e3188e4 /modules | |
parent | sils/basesystem: explicitely enable redistributable firmware (diff) | |
download | nix-config-24795885abd8d18985f883174656e2d16295fb5b.tar.gz nix-config-24795885abd8d18985f883174656e2d16295fb5b.zip |
sils/meta: make declarations nullable
Diffstat (limited to 'modules')
-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; }; }; } |