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 lazyAttrsOf
oneOf oneOf
submodule submodule
str lines
listOf listOf
; ;
textType = oneOf [ textType = oneOf [
str lines
(submodule { (submodule {
options = { options = {
heading = mkOption { heading = mkOption {
type = str; type = lines;
default = ""; default = "";
}; };
description = mkOption { description = mkOption {
type = str; type = lines;
default = ""; default = "";
}; };
order = mkOption { order = mkOption {
type = listOf str; type = listOf lines;
default = [ ]; default = [ ];
}; };
parts = mkOption { type = lazyAttrsOf textType; }; parts = mkOption { type = lazyAttrsOf textType; };
@ -77,4 +77,3 @@ in
); );
}; };
} }