From 36dc856f3ceb240b0ce8fa7ee0a2c4a9b713c0bd Mon Sep 17 00:00:00 2001 From: zimward Date: Sat, 16 May 2026 11:29:30 +0200 Subject: [PATCH] lib/modules/command: use lines type for Hooks --- lib/modules/command.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/modules/command.nix b/lib/modules/command.nix index 9949432..5c609b0 100644 --- a/lib/modules/command.nix +++ b/lib/modules/command.nix @@ -36,14 +36,14 @@ ''; }; options.preHook = lib.mkOption { - type = lib.types.str; + type = lib.types.lines; default = ""; description = '' Shell script to run before executing the command. ''; }; options.postHook = lib.mkOption { - type = lib.types.str; + type = lib.types.lines; default = ""; description = '' Shell script to run after executing the command.