1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-18 15:59:48 +01:00

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

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