From 00ba1e616ef3b761a52d5f7ac32892715cc4bcd1 Mon Sep 17 00:00:00 2001 From: Mohammad Rafiq Date: Mon, 7 Jul 2025 00:35:11 +0800 Subject: [PATCH] fix: use lines instead of str for multi-line strings --- module.nix | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/module.nix b/module.nix index ec95ffe..61283f8 100644 --- a/module.nix +++ b/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 ); }; } -