lib/file-type: convert `executable` to bool (#4036)

It doesn't make sense to pass `executable = null` to `writeTextFile`.
This commit is contained in:
Naïm Favier 2023-05-30 11:21:14 +02:00 committed by GitHub
parent 43ed7048f6
commit 9f82227b64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

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