fix: use lines instead of str for multi-line strings

This commit is contained in:
Mohammad Rafiq 2025-07-07 00:35:11 +08:00
parent cb39deafeb
commit 00ba1e616e
No known key found for this signature in database

View file

@ -17,23 +17,23 @@ let
lazyAttrsOf
oneOf
submodule
str
lines
listOf
;
textType = oneOf [
str
lines
(submodule {
options = {
heading = mkOption {
type = str;
type = lines;
default = "";
};
description = mkOption {
type = str;
type = lines;
default = "";
};
order = mkOption {
type = listOf str;
type = listOf lines;
default = [ ];
};
parts = mkOption { type = lazyAttrsOf textType; };
@ -77,4 +77,3 @@ in
);
};
}