diff options
| author | Chris Wells <chris@mathematicaster.org> | 2024-09-10 14:51:28 -0500 |
|---|---|---|
| committer | Chris Wells <chris@mathematicaster.org> | 2024-09-10 14:51:28 -0500 |
| commit | 4f471484b3a1e16230979a8406503a220b9101f4 (patch) | |
| tree | dc3f5256f275f34d3bcc9573462ed34c7fd97f77 /modules/device/default.nix | |
| parent | 5cb16c34a8c5b803ec723934c1dc828c0e8e3bad (diff) | |
| download | kobo-manager-4f471484b3a1e16230979a8406503a220b9101f4.tar kobo-manager-4f471484b3a1e16230979a8406503a220b9101f4.tar.gz kobo-manager-4f471484b3a1e16230979a8406503a220b9101f4.tar.bz2 kobo-manager-4f471484b3a1e16230979a8406503a220b9101f4.tar.lz kobo-manager-4f471484b3a1e16230979a8406503a220b9101f4.tar.xz kobo-manager-4f471484b3a1e16230979a8406503a220b9101f4.tar.zst kobo-manager-4f471484b3a1e16230979a8406503a220b9101f4.zip | |
I think this is almost working!
Diffstat (limited to 'modules/device/default.nix')
| -rw-r--r-- | modules/device/default.nix | 9 |
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"; + }; }; }; } |
