let inherit (import ./helpers.nix) labHelpers nasUsers; inherit (labHelpers) guestPath mediaPath docsPath homePath miscPath userPath groupPath mntPath ; nasDirs = user: [ "d ${userPath user} 0751 microvm wheel - -" "d ${homePath user} 0751 microvm wheel - -" "d ${guestPath user} 0751 microvm wheel - -" "d ${docsPath user} 0751 microvm wheel - -" "d ${mediaPath user} 0751 microvm wheel - -" "d ${miscPath user} 0751 microvm wheel - -" ]; nasUserList = [ nasUsers.nasUser0 nasUsers.nasUser1 nasUsers.nasUser2 ]; nasDirBuilder = builtins.concatLists (builtins.map (user: nasDirs user) nasUserList); defaultDirs = [ "d ${mntPath} 0751 microvm wheel - -" "d ${groupPath} 0751 microvm wheel - -" ]; in { systemd.tmpfiles.rules = defaultDirs ++ nasDirBuilder; }