mirror of
https://github.com/nix-community/home-manager
synced 2024-12-19 00:09: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:
parent
43ed7048f6
commit
9f82227b64
1 changed files with 2 additions and 1 deletions
|
@ -115,7 +115,8 @@ in
|
||||||
target = mkDefault name;
|
target = mkDefault name;
|
||||||
source = mkIf (config.text != null) (
|
source = mkIf (config.text != null) (
|
||||||
mkDefault (pkgs.writeTextFile {
|
mkDefault (pkgs.writeTextFile {
|
||||||
inherit (config) executable text;
|
inherit (config) text;
|
||||||
|
executable = config.executable == true; # can be null
|
||||||
name = hm.strings.storeFileName name;
|
name = hm.strings.storeFileName name;
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue