mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-15 21:08:21 +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 = {
|
config = {
|
||||||
|
|
||||||
source = mkMerge
|
source = mkDefault drv;
|
||||||
[ (mkDefaultIf (config.text != "") drv)
|
|
||||||
(mkDefaultIf (config.text == "") (abort "environment.etc.${name}.text is empty but no source was defined."))
|
|
||||||
];
|
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue