[Nix-dev] How to ensure that a directory exists via configuration.nix

Mark Gardner mkg at vt.edu
Fri Feb 10 01:59:12 CET 2017


I have searched the manual and options, as well as the Internet, and have
not found how to specify in configuration.nix that a directory should
exist, in this case /mnt, creating it if not. One might put "if [ ! -d /mnt
] ; then mkdir /mnt; fi" in rc.local. What is the NixOS way to do this (or
anything else that one might put in rc.local)?

Mark
-- 
Mark Gardner
--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.science.uu.nl/pipermail/nix-dev/attachments/20170209/beda0c21/attachment.html>


More information about the nix-dev mailing list