options: use types.str instead of types.string

This commit is contained in:
LavaDesu 2025-03-23 12:45:59 +11:00
parent d92455cebf
commit 095d24b797
Signed by: cilly
GPG key ID: 6500251E087653C9

View file

@ -21,12 +21,12 @@ in {
}; };
batteryDevice = mkOption { batteryDevice = mkOption {
type = types.nullOr types.string; type = with types; nullOr (uniq str);
default = null; default = null;
}; };
kbBacklightDevice = mkOption { kbBacklightDevice = mkOption {
type = types.nullOr types.string; type = with types; nullOr (uniq str);
default = null; default = null;
}; };