mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-14 11:57:34 +00:00
write-text: support empty files
This commit is contained in:
parent
e925a2d50e
commit
fc2bc4e05b
1 changed files with 1 additions and 4 deletions
|
@ -52,10 +52,7 @@ in
|
|||
|
||||
config = {
|
||||
|
||||
source = mkMerge
|
||||
[ (mkDefaultIf (config.text != "") drv)
|
||||
(mkDefaultIf (config.text == "") (abort "environment.etc.${name}.text is empty but no source was defined."))
|
||||
];
|
||||
source = mkDefault drv;
|
||||
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue