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
|
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
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue