fix: use lines instead of str for multi-line strings
This commit is contained in:
parent
cb39deafeb
commit
00ba1e616e
1 changed files with 5 additions and 6 deletions
11
module.nix
11
module.nix
|
@ -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
|
|||
);
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue