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; }) );