[Nix-dev] How to ensure that a directory exists via configuration.nix
Mark Gardner
mkg at vt.edu
Fri Feb 10 17:06:56 CET 2017
Once again, thanks Layus!
For the benefit of others, here is what I put in my configuration.nix:
system.activationScripts = {
mnt = {
text = ''if [ ! -d /mnt ] ; then mkdir /mnt; fi";
deps = [];
};
};
Mark
--
Mark Gardner
--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.science.uu.nl/pipermail/nix-dev/attachments/20170210/c4b0f670/attachment.html>
More information about the nix-dev
mailing list