aboutsummaryrefslogtreecommitdiff
path: root/modules/device/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/device/default.nix')
-rw-r--r--modules/device/default.nix9
1 files changed, 7 insertions, 2 deletions
diff --git a/modules/device/default.nix b/modules/device/default.nix
index a1f80ef..23be585 100644
--- a/modules/device/default.nix
+++ b/modules/device/default.nix
@@ -4,10 +4,10 @@ let
devices = import ../../data/devices.nix;
hardware = mkOption {
- type = types.strMatching ''^kobo\d+$'';
+ type = types.strMatching ''^kobo[0-9]+$'';
};
deviceID = mkOption {
- type = types.strMatching ''00000000-0000-0000-0000-000000000\d\d\d'';
+ type = types.strMatching ''^00000000-0000-0000-0000-000000000[0-9][0-9][0-9]$'';
};
deviceInfo = types.submodule {
@@ -41,6 +41,11 @@ in {
deviceID = deviceID // {
default = config._allDevices.${config.device.name}.deviceID;
};
+
+ serialNumber = mkOption {
+ type = types.str;
+ default = "N0";
+ };
};
};
}