From 9f82227b64245c273d98dd02dedd44fc7576041e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Na=C3=AFm=20Favier?= Date: Tue, 30 May 2023 11:21:14 +0200 Subject: [PATCH] lib/file-type: convert `executable` to bool (#4036) It doesn't make sense to pass `executable = null` to `writeTextFile`. --- modules/lib/file-type.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/lib/file-type.nix b/modules/lib/file-type.nix index 2f0d2846..a67f6bb0 100644 --- a/modules/lib/file-type.nix +++ b/modules/lib/file-type.nix @@ -115,7 +115,8 @@ in target = mkDefault name; source = mkIf (config.text != null) ( mkDefault (pkgs.writeTextFile { - inherit (config) executable text; + inherit (config) text; + executable = config.executable == true; # can be null name = hm.strings.storeFileName name; }) );